summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:47:08 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 10:42:28 +0000
commit79f481874bad1b51bf67bf854caf199858d394f9 (patch)
treeefc4b31ad5e47ced618e93b377ff0f5502eb893e
parented4bdf25750498d5aa8bf834c6773f4f4acc6c3b (diff)
downloadchrome-ec-79f481874bad1b51bf67bf854caf199858d394f9.tar.gz
driver/als_al3010.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I45c1a563b1ceec76d4edcb524965cca49287a209 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729923 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--driver/als_al3010.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/driver/als_al3010.c b/driver/als_al3010.c
index b129dc2f57..fb3311df8b 100644
--- a/driver/als_al3010.c
+++ b/driver/als_al3010.c
@@ -15,13 +15,13 @@ int al3010_init(void)
{
int ret;
- ret = i2c_write8(I2C_PORT_ALS, AL3010_I2C_ADDR,
- AL3010_REG_CONFIG, AL3010_GAIN << 4);
+ ret = i2c_write8(I2C_PORT_ALS, AL3010_I2C_ADDR, AL3010_REG_CONFIG,
+ AL3010_GAIN << 4);
if (ret)
return ret;
- return i2c_write8(I2C_PORT_ALS, AL3010_I2C_ADDR,
- AL3010_REG_SYSTEM, AL3010_ENABLE);
+ return i2c_write8(I2C_PORT_ALS, AL3010_I2C_ADDR, AL3010_REG_SYSTEM,
+ AL3010_ENABLE);
}
/**
@@ -33,8 +33,8 @@ int al3010_read_lux(int *lux, int af)
int val;
long long val64;
- ret = i2c_read16(I2C_PORT_ALS, AL3010_I2C_ADDR,
- AL3010_REG_DATA_LOW, &val);
+ ret = i2c_read16(I2C_PORT_ALS, AL3010_I2C_ADDR, AL3010_REG_DATA_LOW,
+ &val);
if (ret)
return ret;