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

iio: dac: ltc2688: make ltc2688_dither_ext_info const

Add const qualifier to struct iio_chan_spec_ext_info
ltc2688_dither_ext_info[]. 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-16-v1-1-9b6514588b05@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
ca494204 f7f9a337

+1 -1
+1 -1
drivers/iio/dac/ltc2688.c
··· 622 622 { } 623 623 }; 624 624 625 - static struct iio_chan_spec_ext_info ltc2688_dither_ext_info[] = { 625 + static const struct iio_chan_spec_ext_info ltc2688_dither_ext_info[] = { 626 626 LTC2688_CHAN_EXT_INFO("dither_raw", LTC2688_INPUT_B, IIO_SEPARATE, 627 627 ltc2688_dac_input_read, ltc2688_dac_input_write), 628 628 LTC2688_CHAN_EXT_INFO("dither_raw_available", LTC2688_INPUT_B_AVAIL,