Skip to content

Commit d7ba9b8

Browse files
dlechjic23
authored andcommitted
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>
1 parent 3f547cd commit d7ba9b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/dac/ltc2688.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ static const struct iio_chan_spec_ext_info ltc2688_toggle_ext_info[] = {
622622
{ }
623623
};
624624

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[] = {
626626
LTC2688_CHAN_EXT_INFO("dither_raw", LTC2688_INPUT_B, IIO_SEPARATE,
627627
ltc2688_dac_input_read, ltc2688_dac_input_write),
628628
LTC2688_CHAN_EXT_INFO("dither_raw_available", LTC2688_INPUT_B_AVAIL,

0 commit comments

Comments
 (0)