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

iio: adc: axp20x_adc: make axp717_maps const

Add const qualifier to struct iio_map axp717_maps[]. 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-7-v1-1-10008d0a4c2f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
fc0f5322 1ca58056

+1 -1
+1 -1
drivers/iio/adc/axp20x_adc.c
··· 173 173 { } 174 174 }; 175 175 176 - static struct iio_map axp717_maps[] = { 176 + static const struct iio_map axp717_maps[] = { 177 177 { 178 178 .consumer_dev_name = "axp20x-usb-power-supply", 179 179 .consumer_channel = "vbus_v",