[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <94f7e7f2568d0d70055954f628b2bd56cbe78d9b.camel@gmail.com>
Date: Wed, 21 Feb 2024 14:17:22 +0100
From: Nuno Sá <noname.nuno@...il.com>
To: Dumitru Ceclan <mitrutzceclan@...il.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, Jonathan Cameron
<jic23@...nel.org>, Rob Herring <robh+dt@...nel.org>, Krzysztof Kozlowski
<krzysztof.kozlowski+dt@...aro.org>, Conor Dooley <conor+dt@...nel.org>,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, Ceclan Dumitru <dumitru.ceclan@...log.com>
Subject: Re: [PATCH v5 4/5] iio: amplifiers: hmc425a: use pointers in match
table
On Tue, 2024-02-20 at 17:34 +0200, Dumitru Ceclan wrote:
> Change the match table to use pointers instead of device ids.
> Remove type from state as it is not used anymore.
>
> Signed-off-by: Dumitru Ceclan <mitrutzceclan@...il.com>
> ---
One comment (Jonathan might be able to address that while applying)... With that:
Reviewed-by: Nuno Sa <nuno.sa@...log.com>
> drivers/iio/amplifiers/hmc425a.c | 29 +++++++++++++++--------------
> 1 file changed, 15 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/iio/amplifiers/hmc425a.c b/drivers/iio/amplifiers/hmc425a.c
> index 13e018a59637..77872e2dfdfe 100644
> --- a/drivers/iio/amplifiers/hmc425a.c
> +++ b/drivers/iio/amplifiers/hmc425a.c
> @@ -41,15 +41,14 @@ struct hmc425a_chip_info {
>
> struct hmc425a_state {
> struct mutex lock; /* protect sensor state */
> - struct hmc425a_chip_info *chip_info;
> + const struct hmc425a_chip_info *chip_info;
Since you're doing this, I believe you should also constify hmc425a_chip_info_tbl[]
and mention it in the commit message.
- Nuno Sá
Powered by blists - more mailing lists