Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: light: isl76682: make isl76682_range_table const

Add const qualifier to struct isl76682_range isl76682_range_table[].
This is read-only data so it can be made const.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250628-iio-const-data-21-v1-1-2597d8eda30f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
d94fc241 bae712b6

+1 -1
+1 -1
drivers/iio/light/isl76682.c
··· 59 59 u32 ir; 60 60 }; 61 61 62 - static struct isl76682_range isl76682_range_table[] = { 62 + static const struct isl76682_range isl76682_range_table[] = { 63 63 { ISL76682_COMMAND_RANGE_LUX_1K, 15000, 10500 }, 64 64 { ISL76682_COMMAND_RANGE_LUX_4K, 60000, 42000 }, 65 65 { ISL76682_COMMAND_RANGE_LUX_16K, 240000, 168000 },