From: Jonathan Cameron <jic23@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
"Andre Przywara" <andre.przywara@arm.com>
Subject: Re: [PATCH] iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps
Date: Sat, 7 Jun 2025 16:30:07 +0100 [thread overview]
Message-ID: <20250607163007.21da58c0@jic23-huawei> (raw)
In-Reply-To: <20250607135627.2086850-1-wens@kernel.org>
On Sat, 7 Jun 2025 21:56:27 +0800
Chen-Yu Tsai <wens@kernel.org> wrote:
> From: Chen-Yu Tsai <wens@csie.org>
>
> 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>
Applied to my temporary fixes tree. I'll rebase that on rc1 in next few days.
J
> ---
> drivers/iio/adc/axp20x_adc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c
> index 71584ffd3632..1b49325ec1ce 100644
> --- a/drivers/iio/adc/axp20x_adc.c
> +++ b/drivers/iio/adc/axp20x_adc.c
> @@ -187,6 +187,7 @@ static struct iio_map axp717_maps[] = {
> .consumer_channel = "batt_chrg_i",
> .adc_channel_label = "batt_chrg_i",
> },
> + { }
> };
>
> /*
prev parent reply other threads:[~2025-06-07 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-07 13:56 [PATCH] iio: adc: axp20x_adc: Add missing sentinel to AXP717 ADC channel maps Chen-Yu Tsai
2025-06-07 15:30 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250607163007.21da58c0@jic23-huawei \
--to=jic23@kernel.org \
--cc=andre.przywara@arm.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=nuno.sa@analog.com \
--cc=wens@csie.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox