All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Liam Beguin <liambeguin@gmail.com>
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: Fri, 28 Jun 2024 20:04:38 +0100	[thread overview]
Message-ID: <20240628200438.6c8af4db@jic23-huawei> (raw)
In-Reply-To: <20240625152126.GA1271121@shaak>

On Tue, 25 Jun 2024 11:21:26 -0400
Liam Beguin <liambeguin@gmail.com> wrote:

> 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>
Applied
> 
> > ---
> >  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
> >   


      reply	other threads:[~2024-06-28 19:04 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
2024-06-28 19:04   ` 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=20240628200438.6c8af4db@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=liambeguin@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.