Re: [PATCH v3] iio: accel: sca3000: replace usages of internal read data helpers by spi helpers
From: Jonathan Cameron
Date: Sun May 11 2025 - 07:35:45 EST
> ...
>
> > - *val = sign_extend32(be16_to_cpup((__be16 *)st->rx) >>
> > + *val = sign_extend32(be16_to_cpu((__be16) ret) >>
>
> This doesn't look good, can you define a proper __be16 variable on
> stack and use it instead of ret?
As I mention in v4 quick review, we have spi_w8r16be() to avoid the need
to have this dance at all.
>