forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
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},