hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
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},