kernel/drivers/hid/hid-sensor-custom.c
.. .. @@ -59,7 +59,7 @@ 59 59 u32 raw_len; 60 60 } __packed; 61 61 62 -static struct attribute hid_custom_attrs[] = {62 +static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = {63 63 {.name = "name", .mode = S_IRUGO}, 64 64 {.name = "units", .mode = S_IRUGO}, 65 65 {.name = "unit-expo", .mode = S_IRUGO},