Skip to content

Commit 9701b6e

Browse files
masneybjic23
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 498efcd commit 9701b6e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/staging/iio/light/tsl2x7x.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,16 @@ enum {
255255
};
256256

257257
static const u8 device_channel_config[] = {
258-
ALS,
259-
PRX,
260-
PRX,
261-
ALSPRX,
262-
ALSPRX,
263-
ALS,
264-
PRX2,
265-
PRX2,
266-
ALSPRX2,
267-
ALSPRX2
258+
[tsl2571] = ALS,
259+
[tsl2671] = PRX,
260+
[tmd2671] = PRX,
261+
[tsl2771] = ALSPRX,
262+
[tmd2771] = ALSPRX,
263+
[tsl2572] = ALS,
264+
[tsl2672] = PRX2,
265+
[tmd2672] = PRX2,
266+
[tsl2772] = ALSPRX2,
267+
[tmd2772] = ALSPRX2
268268
};
269269

270270
static int tsl2x7x_read_status(struct tsl2X7X_chip *chip)

0 commit comments

Comments
 (0)