forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 093a6c67005148ae32a5c9e4553491b9f5c2457b
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},