OSDN Git Service

mfd / platform: cros_ec: Move lightbar attributes to its own driver
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 12 Dec 2018 17:33:57 +0000 (18:33 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 1 Feb 2019 08:09:27 +0000 (08:09 +0000)
commitecf8a6cd949ef236ce435ae488ceb6b3354e677e
tree03b957a172e2baf7bfd242feb3afc64564b295d8
parent4bc59c2f7e306775f3d2e1bbafaa854dd1e09335
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.

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-driver-cros-ec-lightbar [new file with mode: 0644]
drivers/mfd/cros_ec_dev.c
drivers/mfd/cros_ec_dev.h
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_lightbar.c
include/linux/mfd/cros_ec.h