iio: common: hid-sensor-attributes: make unit_conversion const
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 17:09:26 +0000 (12:09 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Jul 2025 09:37:52 +0000 (10:37 +0100)
commitf391719dd1b8438bd7b8525575bd6130d4ba1395
tree5dcc621f2b151ca7deb0bb8567e1276a22e38ecb
parent1e9e9669ff3dbc8029c71e189e8ca5d6cede9edf
iio: common: hid-sensor-attributes: make unit_conversion const

Add const qualifier to struct unit_conversion[]. This is read-only data
so it can be made const.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250628-iio-const-data-14-v1-1-4faa8015e122@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c