Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

David Lechner and committed by
Jonathan Cameron
f391719d 1e9e9669

+1 -1
+1 -1
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
··· 11 11 #include <linux/hid-sensor-hub.h> 12 12 #include <linux/iio/iio.h> 13 13 14 - static struct { 14 + static const struct { 15 15 u32 usage_id; 16 16 int unit; /* 0 for default others from HID sensor spec */ 17 17 int scale_val0; /* scale, whole number */