[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250112142031.6979dc64@jic23-huawei>
Date: Sun, 12 Jan 2025 14:20:31 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Angelo Dureghello <adureghello@...libre.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, Michael Hennerich
<Michael.Hennerich@...log.com>, Mihail Chindris
<mihail.chindris@...log.com>, Nuno Sa <nuno.sa@...log.com>, David Lechner
<dlechner@...libre.com>, Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 5/9] iio: dac: ad3552r-hs: fix message on wrong chip
id
On Wed, 08 Jan 2025 18:29:19 +0100
Angelo Dureghello <adureghello@...libre.com> wrote:
> From: Angelo Dureghello <adureghello@...libre.com>
>
> Set a better info message on wrong chip id, fixing the
> expected value as read from the info struct.
Trivial but please wrap closer to 75 chars.
Makes not difference here, but in long logs of commits
it can help and it is good to be consistent.
Jonathan
>
> Signed-off-by: Angelo Dureghello <adureghello@...libre.com>
> ---
> drivers/iio/dac/ad3552r-hs.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/dac/ad3552r-hs.c b/drivers/iio/dac/ad3552r-hs.c
> index 8974df625670..27949f207d42 100644
> --- a/drivers/iio/dac/ad3552r-hs.c
> +++ b/drivers/iio/dac/ad3552r-hs.c
> @@ -326,8 +326,9 @@ static int ad3552r_hs_setup(struct ad3552r_hs_state *st)
>
> id |= val << 8;
> if (id != st->model_data->chip_id)
> - dev_info(st->dev, "Chip ID error. Expected 0x%x, Read 0x%x\n",
> - AD3552R_ID, id);
> + dev_info(st->dev,
> + "Chip ID mismatch, detected 0x%x but expected 0x%x\n",
> + id, st->model_data->chip_id);
>
> /* Clear reset error flag, see ad3552r manual, rev B table 38. */
> ret = st->data->bus_reg_write(st->back, AD3552R_REG_ADDR_ERR_STATUS,
>
Powered by blists - more mailing lists