Re: [PATCH] iio: amplifiers: ad8366: make ad8366_info const
From: Jonathan Cameron
Date: Sun Jun 29 2025 - 13:03:56 EST
On Sat, 28 Jun 2025 12:05:03 -0500
David Lechner <dlechner@xxxxxxxxxxxx> wrote:
> On 6/28/25 12:01 PM, David Lechner wrote:
> > Add const qualifier to struct ad8366_info ad8366_infos[]. This
> > is read-only data so it can be made const.
> >
> > Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
> > ---
> > I looked into dropping use of the chip info array in this one, but
> > removing it isn't trivial. There are several switch statements that
> > are using the chip ID still. So we'll save that for another day.
> > ---
> > drivers/iio/amplifiers/ad8366.c | 6 +++---
>
> Replying with the correct subject. I missed updating the prefix
> from a copied commit message.
>
> Should be `iio: amplifiers: ad8366:`
Fixed up and applied to the testing branch of iio.git on the
perhaps foolish basis "it's obviously correct" :)
>
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
>