[PATCH 0/2] iio: light: cm3232: make struct cm3232_als_info const

David Lechner posted 2 patches 3 months, 1 week ago
drivers/iio/light/cm3232.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
[PATCH 0/2] iio: light: cm3232: make struct cm3232_als_info const
Posted by David Lechner 3 months, 1 week ago
Typically, chip info structs are const. Before we can make that change,
we need to move the calibscale field to the driver data struct. This
also allows individual instances of the driver to have different
calibscale values.

---
David Lechner (2):
      iio: light: cm3232: move calibscale to struct cm3232_chip
      iio: light: cm3232: make struct cm3232_als_info const

 drivers/iio/light/cm3232.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
---
base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
change-id: 20250628-iio-const-data-20-1f1a05001890

Best regards,
-- 
David Lechner <dlechner@baylibre.com>
Re: [PATCH 0/2] iio: light: cm3232: make struct cm3232_als_info const
Posted by Jonathan Cameron 3 months ago
On Sat, 28 Jun 2025 12:52:29 -0500
David Lechner <dlechner@baylibre.com> wrote:

> Typically, chip info structs are const. Before we can make that change,
> we need to move the calibscale field to the driver data struct. This
> also allows individual instances of the driver to have different
> calibscale values.
> 
> ---
> David Lechner (2):
>       iio: light: cm3232: move calibscale to struct cm3232_chip
>       iio: light: cm3232: make struct cm3232_als_info const
Applied.

> 
>  drivers/iio/light/cm3232.c | 18 ++++++++----------
>  1 file changed, 8 insertions(+), 10 deletions(-)
> ---
> base-commit: 14071b9cf2d751ff9bc8b5e43fa94fbf08aceea1
> change-id: 20250628-iio-const-data-20-1f1a05001890
> 
> Best regards,