]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:31 +0000 (08:58 +0200)
commit0c0c01c88bb69951539539d2001e67f0c613001f
tree54aa8168e235a4ae461f13e8d2e23ebc18d1b400
parent38e928aaf17c436fd92ae5799a3ec4c122e74b1f
iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps

commit 3281ddcea6429f7bc1fdb39d407752dd1371aba9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/axp20x_adc.c