[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250629181441.3173ee5d@jic23-huawei>
Date: Sun, 29 Jun 2025 18:14:41 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: David Lechner <dlechner@...libre.com>
Cc: Nuno Sá <nuno.sa@...log.com>, Andy Shevchenko
<andy@...nel.org>, linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: imu: bno055: make bno055_sysfs_attr const
On Sat, 28 Jun 2025 12:35:36 -0500
David Lechner <dlechner@...libre.com> wrote:
> Add const qualifier to struct bno055_sysfs_attr and its array fields.
> All of this is read-only data so it can be made const.
>
> Signed-off-by: David Lechner <dlechner@...libre.com>
I was a little more dubious about this one and whether the scope of the changes
made it not worthwhile. Still const when possible is always good so
applied to the testing branch.
Thanks,
Jonathan
Powered by blists - more mailing lists