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>
pull/1309/head
David Lechner 2025-06-28 12:54:37 -05:00 committed by Jonathan Cameron
parent bae712b66c
commit d94fc241a9
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ struct isl76682_range {
u32 ir; u32 ir;
}; };
static struct isl76682_range isl76682_range_table[] = { static const struct isl76682_range isl76682_range_table[] = {
{ ISL76682_COMMAND_RANGE_LUX_1K, 15000, 10500 }, { ISL76682_COMMAND_RANGE_LUX_1K, 15000, 10500 },
{ ISL76682_COMMAND_RANGE_LUX_4K, 60000, 42000 }, { ISL76682_COMMAND_RANGE_LUX_4K, 60000, 42000 },
{ ISL76682_COMMAND_RANGE_LUX_16K, 240000, 168000 }, { ISL76682_COMMAND_RANGE_LUX_16K, 240000, 168000 },