]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: dac: ltc2688: make ltc2688_dither_ext_info const
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 17:15:24 +0000 (12:15 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Jul 2025 09:37:53 +0000 (10:37 +0100)
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>
drivers/iio/dac/ltc2688.c

index 1f24f07d1ad24ac1730da0e03b65207ca5f07884..7a2ee26a7d68730fe90d9cc91ea764f05eb61791 100644 (file)
@@ -622,7 +622,7 @@ static const struct iio_chan_spec_ext_info ltc2688_toggle_ext_info[] = {
        { }
 };
 
-static struct iio_chan_spec_ext_info ltc2688_dither_ext_info[] = {
+static const struct iio_chan_spec_ext_info ltc2688_dither_ext_info[] = {
        LTC2688_CHAN_EXT_INFO("dither_raw", LTC2688_INPUT_B, IIO_SEPARATE,
                              ltc2688_dac_input_read, ltc2688_dac_input_write),
        LTC2688_CHAN_EXT_INFO("dither_raw_available", LTC2688_INPUT_B_AVAIL,