Skip to content

Commit 75abee3

Browse files
dlechjic23
authored andcommitted
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>
1 parent 24af824 commit 75abee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/light/isl76682.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct isl76682_range {
5959
u32 ir;
6060
};
6161

62-
static struct isl76682_range isl76682_range_table[] = {
62+
static const struct isl76682_range isl76682_range_table[] = {
6363
{ ISL76682_COMMAND_RANGE_LUX_1K, 15000, 10500 },
6464
{ ISL76682_COMMAND_RANGE_LUX_4K, 60000, 42000 },
6565
{ ISL76682_COMMAND_RANGE_LUX_16K, 240000, 168000 },

0 commit comments

Comments
 (0)