]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps
authorChen-Yu Tsai <wens@csie.org>
Sat, 7 Jun 2025 13:56:27 +0000 (21:56 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Jun 2025 16:15:39 +0000 (17:15 +0100)
The AXP717 ADC channel maps is missing a sentinel entry at the end. This
causes a KASAN warning.

Add the missing sentinel entry.

Fixes: 5ba0cb92584b ("iio: adc: axp20x_adc: add support for AXP717 ADC")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://patch.msgid.link/20250607135627.2086850-1-wens@kernel.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c

index 71584ffd36324800e23945df7984ac98ba88b793..1b49325ec1ce408af948043093868a42f188cded 100644 (file)
@@ -187,6 +187,7 @@ static struct iio_map axp717_maps[] = {
                .consumer_channel = "batt_chrg_i",
                .adc_channel_label = "batt_chrg_i",
        },
+       { }
 };
 
 /*