Skip to content

Commit 285ce2e

Browse files
dlechjic23
authored andcommitted
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>
1 parent 7ffcdbf commit 285ce2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/mp2629_adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct mp2629_adc {
4444
struct device *dev;
4545
};
4646

47-
static struct iio_chan_spec mp2629_channels[] = {
47+
static const struct iio_chan_spec mp2629_channels[] = {
4848
MP2629_ADC_CHAN(BATT_VOLT, IIO_VOLTAGE),
4949
MP2629_ADC_CHAN(SYSTEM_VOLT, IIO_VOLTAGE),
5050
MP2629_ADC_CHAN(INPUT_VOLT, IIO_VOLTAGE),

0 commit comments

Comments
 (0)