summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:47:11 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 01:38:05 +0000
commitfa5582d6982ab873b6ca8b59cf9a3e2b381030f7 (patch)
treeb053d75bb82d3be0f6368e9c247d77f041130ab2
parentf86bcae0e82eb26f60b2f0322bef3f80c562d88f (diff)
downloadchrome-ec-fa5582d6982ab873b6ca8b59cf9a3e2b381030f7.tar.gz
driver/als_al3010.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ifd65383bb6179a00deb782b2c3b2cece9f212bfa Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729898 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--driver/als_al3010.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/driver/als_al3010.h b/driver/als_al3010.h
index 288e255990..f129f8a532 100644
--- a/driver/als_al3010.h
+++ b/driver/als_al3010.h
@@ -9,32 +9,32 @@
#define __CROS_EC_ALS_AL3010_H
/* I2C interface */
-#define AL3010_I2C_ADDR1_FLAGS 0x1C
-#define AL3010_I2C_ADDR2_FLAGS 0x1D
-#define AL3010_I2C_ADDR3_FLAGS 0x1E
+#define AL3010_I2C_ADDR1_FLAGS 0x1C
+#define AL3010_I2C_ADDR2_FLAGS 0x1D
+#define AL3010_I2C_ADDR3_FLAGS 0x1E
/* AL3010 registers */
-#define AL3010_REG_SYSTEM 0x00
-#define AL3010_REG_INT_STATUS 0x01
-#define AL3010_REG_CONFIG 0x10
-#define AL3010_REG_DATA_LOW 0x0C
+#define AL3010_REG_SYSTEM 0x00
+#define AL3010_REG_INT_STATUS 0x01
+#define AL3010_REG_CONFIG 0x10
+#define AL3010_REG_DATA_LOW 0x0C
-#define AL3010_ENABLE 0x01
+#define AL3010_ENABLE 0x01
#define AL3010_GAIN_SELECT 3
-#define AL3010_GAIN_1 0 /* 77806 lx */
-#define AL3010_GAIN_2 1 /* 19452 lx */
-#define AL3010_GAIN_3 2 /* 4863 lx */
-#define AL3010_GAIN_4 3 /* 1216 lx */
-#define AL3010_GAIN CONCAT2(AL3010_GAIN_, AL3010_GAIN_SELECT)
+#define AL3010_GAIN_1 0 /* 77806 lx */
+#define AL3010_GAIN_2 1 /* 19452 lx */
+#define AL3010_GAIN_3 2 /* 4863 lx */
+#define AL3010_GAIN_4 3 /* 1216 lx */
+#define AL3010_GAIN CONCAT2(AL3010_GAIN_, AL3010_GAIN_SELECT)
-#define AL3010_GAIN_SCALE_1 11872 /* 1.1872 lux/count */
-#define AL3010_GAIN_SCALE_2 2968 /* 0.2968 lux/count */
-#define AL3010_GAIN_SCALE_3 742 /* 0.0742 lux/count */
-#define AL3010_GAIN_SCALE_4 186 /* 0.0186 lux/count */
+#define AL3010_GAIN_SCALE_1 11872 /* 1.1872 lux/count */
+#define AL3010_GAIN_SCALE_2 2968 /* 0.2968 lux/count */
+#define AL3010_GAIN_SCALE_3 742 /* 0.0742 lux/count */
+#define AL3010_GAIN_SCALE_4 186 /* 0.0186 lux/count */
#define AL3010_GAIN_SCALE CONCAT2(AL3010_GAIN_SCALE_, AL3010_GAIN_SELECT)
int al3010_init(void);
int al3010_read_lux(int *lux, int af);
-#endif /* __CROS_EC_ALS_AL3010_H */
+#endif /* __CROS_EC_ALS_AL3010_H */