History

mfd / platform: cros_ec: Move lightbar attributes to its own driver

The entire way how cros sysfs attibutes are created is broken. cros_ec_lightbar should be its own driver and its attributes should be associated with a lightbar driver not the mfd driver. In order to retain the path, the lightbar attributes are attached to the cros_class. The patch also adds the sysfs documentation.

Enric Balletbo i Serra committed 7 years ago

Commit ecf8a6c1 parent 4bc59c27 files · +173 −41Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/mfd/cros_ec.h+0−1
@@ -327,7 +327,6 @@ u32 cros_ec_get_host_event(struct cros_ec_device *ec_dev); · 326 unmodified lines
327327
328328 /* sysfs stuff */
329329 extern struct attribute_group cros_ec_attr_group;
330−extern struct attribute_group cros_ec_lightbar_attr_group;
331330 extern struct attribute_group cros_ec_vbc_attr_group;
332331
333332 /* debugfs stuff */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t