The entire way how cros debugfs attibutes are created is broken. cros_ec_sysfs should be its own driver and its attributes should be associated with the sysfs driver not the mfd driver. The patch also adds the sysfs documentation.
Showing the changes to include/linux (1 of 8 files). Show all
Unified · Split
| @@ -325,7 +325,4 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev, bool *wake_event); · 324 unmodified lines | ||
| 325 | 325 | */ |
| 326 | 326 | u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev); |
| 327 | 327 | |
| 328 | −/* sysfs stuff */ | |
| 329 | −extern struct attribute_group cros_ec_attr_group; | |
| 330 | − | |
| 331 | 328 | #endif /* __LINUX_MFD_CROS_EC_H */ |