hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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},