mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
bae712b66c
commit
d94fc241a9
@@ -59,7 +59,7 @@ struct isl76682_range {
|
||||
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_4K, 60000, 42000 },
|
||||
{ ISL76682_COMMAND_RANGE_LUX_16K, 240000, 168000 },
|
||||
|
||||
Reference in New Issue
Block a user