iio: light: cm3232: move calibscale to struct cm3232_chip
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 17:52:30 +0000 (12:52 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:24 +0000 (15:36 +0100)
commit8f02a8d6a7bfcf742bf65202eee3b8a5fc1f374f
tree3751317152861916c5f6c5c6816d2aa960268b76
parent2ef920e0e5c06c2bf200a1f1e1019a9a5111a90e
iio: light: cm3232: move calibscale to struct cm3232_chip

Move the calibscale field from struct cm3232_als_info to struct
cm3232_chip. The chip info struct is supposed to be const while the
driver data struct should contain mutable fields. Since calibscale
is a mutable field, it should be in the driver data struct.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250628-iio-const-data-20-v1-1-2bf90b03f9f1@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/cm3232.c