RE: [PATCH v3 2/8] iio: temperature: ltc2983: Use local device pointer consistently

From: Stan, Liviu

Date: Fri May 22 2026 - 10:18:00 EST


On Fri, 22 May 2026 14:02:55 +0100 Jonathan Cameron <jic23@xxxxxxxxxx> wrote:

> On Thu, 21 May 2026 19:42:55 +0300
> Liviu Stan <liviu.stan@xxxxxxxxxx> wrote:
>
> > Some functions define a local 'dev' pointer but still use bare
> > '&st->spi->dev' in some code paths, and some don't have it at all.
> > Replace bare references with the local pointer for consistency.
> >
> > Signed-off-by: Liviu Stan <liviu.stan@xxxxxxxxxx>
>
> Hi Liviu,
>
> When doing this sort of change, one of the advantages is often that code lines
> get shorter. So look at the lines touched and see if the wrapping remains
> appropriate.
>
> At least some of the cases I point out below already fitted on one line
> under 80 chars but none the less they are now even shorter so that needs
> tidying up. Note that a few other cases are just over 80 chars.
> Take a look at those and decide if readability is improved much by just
> going a few characters over. That line length isn't the hard rule it
> used to be!
>
Hi,

Understood, I'll tidy them up! Thanks!

Liviu