diff options
author | Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> | 2022-05-25 10:33:21 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-27 19:04:52 +0000 |
commit | 2b505abdbbd966f021ebbc5846a94f31da8ce142 (patch) | |
tree | cfd3bef6eb201feee83ea4a48cf9a9195a207336 | |
parent | 42db333f60e11372c2939a51b7a690032e1a3d8b (diff) | |
download | chrome-ec-2b505abdbbd966f021ebbc5846a94f31da8ce142.tar.gz |
is31fl3733b: Remove reads for write-only registers
The config register is write-only. This patch
removes the code reading them.
BUG=b:233323599
BRANCH=none
TEST=build pass
Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
Change-Id: I9c58b9c7854c5b593bbc4caba14dcf13e475dd60
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663675
Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | driver/led/is31fl3733b.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/led/is31fl3733b.c b/driver/led/is31fl3733b.c index ff2f5a82a1..834714f32c 100644 --- a/driver/led/is31fl3733b.c +++ b/driver/led/is31fl3733b.c @@ -138,11 +138,13 @@ static int is31fl3733b_enable(struct rgbkbd *ctx, bool enable) gpio_set_level(GPIO_RGBKBD_SDB_L, enable ? 1 : 0); - rv = is31fl3733b_get_config(ctx, IS31FL3733B_FUNC_CFG, &u8); + rv = is31fl3733b_set_page(ctx, IS31FL3733B_PAGE_FUNC); if (rv) { return rv; } + u8 = 0; + WRITE_BIT(u8, 4, 1); WRITE_BIT(u8, 0, enable); |