]> git.baikalelectronics.ru Git - kernel.git/commit
mfd / platform: cros_ec: Move device sysfs attributes to its own driver
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 12 Dec 2018 17:34:00 +0000 (18:34 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 1 Feb 2019 08:09:27 +0000 (08:09 +0000)
commit5d034958a52aa174017d8a9a35972a44f902d223
tree14af3b15c2a73e037049afd6ad5a37a07547b8c5
parentb18f89b4e460fa9b26d251ad7ad7e2a260289281
mfd / platform: cros_ec: Move device sysfs attributes to its own driver

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.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/ABI/testing/sysfs-class-chromeos [new file with mode: 0644]
drivers/mfd/Kconfig
drivers/mfd/cros_ec_dev.c
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_lightbar.c
drivers/platform/chrome/cros_ec_sysfs.c
include/linux/mfd/cros_ec.h