diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2024-02-05 21:59:24 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-02-17 19:16:11 +0300 |
commit | 00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d (patch) | |
tree | 9cf1ddb0339bb24273c92d6f7e4df8da124c272e /drivers/iio/light/hid-sensor-als.c | |
parent | f2a71ebdf2312a07824fb8445267e62bc0074e56 (diff) | |
download | linux-00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d.tar.xz |
iio: hid-sensor-als: Remove hardcoding of values for enums
Remove hardcoding of values for enum CHANNEL_SCAN_INDEX_INTENSITY and
CHANNEL_SCAN_INDEX_ILLUM.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20240205185926.3030521-3-srinivas.pandruvada@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/hid-sensor-als.c')
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index b900b6ef8a9d..bd4cb0883121 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c @@ -14,8 +14,8 @@ #include "../common/hid-sensors/hid-sensor-trigger.h" enum { - CHANNEL_SCAN_INDEX_INTENSITY = 0, - CHANNEL_SCAN_INDEX_ILLUM = 1, + CHANNEL_SCAN_INDEX_INTENSITY, + CHANNEL_SCAN_INDEX_ILLUM, CHANNEL_SCAN_INDEX_MAX }; |