Commit 9701b6e2 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron

staging: iio: tsl2x7x: add device ids for code readability

This patch adds the device IDs to the device_channel_config array to
improve code readability.
Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 498efcd0
...@@ -255,16 +255,16 @@ enum { ...@@ -255,16 +255,16 @@ enum {
}; };
static const u8 device_channel_config[] = { static const u8 device_channel_config[] = {
ALS, [tsl2571] = ALS,
PRX, [tsl2671] = PRX,
PRX, [tmd2671] = PRX,
ALSPRX, [tsl2771] = ALSPRX,
ALSPRX, [tmd2771] = ALSPRX,
ALS, [tsl2572] = ALS,
PRX2, [tsl2672] = PRX2,
PRX2, [tmd2672] = PRX2,
ALSPRX2, [tsl2772] = ALSPRX2,
ALSPRX2 [tmd2772] = ALSPRX2
}; };
static int tsl2x7x_read_status(struct tsl2X7X_chip *chip) static int tsl2x7x_read_status(struct tsl2X7X_chip *chip)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment