Skip to content

Commit

Permalink
staging: iio: tsl2x7x: add device ids for code readability
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Masney authored and Jonathan Cameron committed May 6, 2018
1 parent 498efcd commit 9701b6e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions drivers/staging/iio/light/tsl2x7x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9701b6e

Please sign in to comment.