hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/hid/hid-sensor-custom.c
....@@ -59,7 +59,7 @@
5959 u32 raw_len;
6060 } __packed;
6161
62
-static struct attribute hid_custom_attrs[] = {
62
+static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = {
6363 {.name = "name", .mode = S_IRUGO},
6464 {.name = "units", .mode = S_IRUGO},
6565 {.name = "unit-expo", .mode = S_IRUGO},