[PATCH 0/2] iio: light: cm3232: make struct cm3232_als_info const
From: David Lechner
Date: Sat Jun 28 2025 - 13:53:09 EST
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@xxxxxxxxxxxx>