Skip to content

Commit 939079f

Browse files
dlechjic23
authored andcommitted
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>
1 parent 7d7c205 commit 939079f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/common/hid-sensors/hid-sensor-attributes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/hid-sensor-hub.h>
1212
#include <linux/iio/iio.h>
1313

14-
static struct {
14+
static const struct {
1515
u32 usage_id;
1616
int unit; /* 0 for default others from HID sensor spec */
1717
int scale_val0; /* scale, whole number */

0 commit comments

Comments
 (0)