diff options
author | Brian Masney <masneyb@onstation.org> | 2018-05-04 04:53:16 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-05-06 20:25:21 +0200 |
commit | 9701b6e2c524cce28abfca32e3383775077955b9 (patch) | |
tree | 2ac32a30a5ccd4d7483cbd2abc2fd227dc59275f | |
parent | staging: iio: tsl2x7x: correct integration time and lux equation (diff) | |
download | linux-9701b6e2c524cce28abfca32e3383775077955b9.tar.xz linux-9701b6e2c524cce28abfca32e3383775077955b9.zip |
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: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/staging/iio/light/tsl2x7x.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c index 9b32054713fb..cc863e8927f5 100644 --- a/drivers/staging/iio/light/tsl2x7x.c +++ b/drivers/staging/iio/light/tsl2x7x.c @@ -255,16 +255,16 @@ enum { }; static const u8 device_channel_config[] = { - ALS, - PRX, - PRX, - ALSPRX, - ALSPRX, - ALS, - PRX2, - PRX2, - ALSPRX2, - ALSPRX2 + [tsl2571] = ALS, + [tsl2671] = PRX, + [tmd2671] = PRX, + [tsl2771] = ALSPRX, + [tmd2771] = ALSPRX, + [tsl2572] = ALS, + [tsl2672] = PRX2, + [tmd2672] = PRX2, + [tsl2772] = ALSPRX2, + [tmd2772] = ALSPRX2 }; static int tsl2x7x_read_status(struct tsl2X7X_chip *chip) |