From: Liam Beguin <liambeguin@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH] iio: adc: ltc2309: Fix endian type passed to be16_to_cpu()
Date: Tue, 25 Jun 2024 11:21:26 -0400 [thread overview]
Message-ID: <20240625152126.GA1271121@shaak> (raw)
In-Reply-To: <20240624193210.347434-1-jic23@kernel.org>
On Mon, Jun 24, 2024 at 08:32:10PM +0100, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
>
> Picked up by sparse.
>
> Cc: Liam Beguin <liambeguin@gmail.com>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Liam Beguin <liambeguin@gmail.com>
> ---
> drivers/iio/adc/ltc2309.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/ltc2309.c b/drivers/iio/adc/ltc2309.c
> index 888a71454070..5f0d947d0615 100644
> --- a/drivers/iio/adc/ltc2309.c
> +++ b/drivers/iio/adc/ltc2309.c
> @@ -103,7 +103,7 @@ static int ltc2309_read_raw_channel(struct ltc2309 *ltc2309,
> unsigned long address, int *val)
> {
> int ret;
> - u16 buf;
> + __be16 buf;
> u8 din;
>
> din = FIELD_PREP(LTC2309_DIN_CH_MASK, address & 0x0f) |
> --
> 2.45.2
>
next prev parent reply other threads:[~2024-06-25 15:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 19:32 [PATCH] iio: adc: ltc2309: Fix endian type passed to be16_to_cpu() Jonathan Cameron
2024-06-25 15:21 ` Liam Beguin [this message]
2024-06-28 19:04 ` Jonathan Cameron
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=20240625152126.GA1271121@shaak \
--to=liambeguin@gmail.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.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