Skip to content

Commit 3281ddc

Browse files
wensjic23
authored andcommitted
iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps
The AXP717 ADC channel maps is missing a sentinel entry at the end. This causes a KASAN warning. Add the missing sentinel entry. Fixes: 5ba0cb9 ("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>
1 parent fd8e6f8 commit 3281ddc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/iio/adc/axp20x_adc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ static struct iio_map axp717_maps[] = {
187187
.consumer_channel = "batt_chrg_i",
188188
.adc_channel_label = "batt_chrg_i",
189189
},
190+
{ }
190191
};
191192

192193
/*

0 commit comments

Comments
 (0)