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

iio: adc: mp2629_adc: make mp2629_channels const

Add const qualifier to struct iio_chan_spec mp2629_channels[]. 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-8-v1-1-32ce79494d4a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
bf9b1ffe fc0f5322

+1 -1
+1 -1
drivers/iio/adc/mp2629_adc.c
··· 44 44 struct device *dev; 45 45 }; 46 46 47 - static struct iio_chan_spec mp2629_channels[] = { 47 + static const struct iio_chan_spec mp2629_channels[] = { 48 48 MP2629_ADC_CHAN(BATT_VOLT, IIO_VOLTAGE), 49 49 MP2629_ADC_CHAN(SYSTEM_VOLT, IIO_VOLTAGE), 50 50 MP2629_ADC_CHAN(INPUT_VOLT, IIO_VOLTAGE),