|
@@ -657,7 +657,7 @@ void picolcd_debug_raw_event(struct picolcd_data *data,
|
|
|
|
|
|
#define BUFF_SZ 256
|
|
#define BUFF_SZ 256
|
|
/* Avoid unnecessary overhead if debugfs is disabled */
|
|
/* Avoid unnecessary overhead if debugfs is disabled */
|
|
- if (!hdev->debug_events)
|
|
|
|
|
|
+ if (list_empty(&hdev->debug_list))
|
|
return;
|
|
return;
|
|
|
|
|
|
buff = kmalloc(BUFF_SZ, GFP_ATOMIC);
|
|
buff = kmalloc(BUFF_SZ, GFP_ATOMIC);
|