summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2024-02-05 10:59:24 -0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-17 16:16:11 +0000
commit00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d (patch)
tree9cf1ddb0339bb24273c92d6f7e4df8da124c272e /drivers/iio
parentf2a71ebdf2312a07824fb8445267e62bc0074e56 (diff)
downloadlinux-00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d.tar.gz
linux-00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d.tar.bz2
linux-00c45c9ef9b243cd0d48ae2bd0b8d908a9e04b2d.zip
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')
-rw-r--r--drivers/iio/light/hid-sensor-als.c4
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
};