1
0

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>
This commit is contained in:
David Lechner
2025-06-28 11:23:58 -05:00
committed by Jonathan Cameron
parent 1ca58056bc
commit fc0f5322a3

View File

@@ -173,7 +173,7 @@ static const struct iio_map axp22x_maps[] = {
{ }
};
static struct iio_map axp717_maps[] = {
static const struct iio_map axp717_maps[] = {
{
.consumer_dev_name = "axp20x-usb-power-supply",
.consumer_channel = "vbus_v",