]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros_ec: Move protocol helpers out of the MFD driver
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tue, 9 Jun 2015 11:04:44 +0000 (13:04 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 15 Jun 2015 12:18:20 +0000 (13:18 +0100)
commit7961dde3891644d3dde269a8e0d9b45b2cb42a21
tree5af8fcb6bacea36579c79929a57b572d14982691
parentf0401dc9339f3645b1d46f0dc54978c76df4426a
mfd: cros_ec: Move protocol helpers out of the MFD driver

The MFD driver should only have the logic to instantiate its child devices
and setup any shared resources that will be used by the subdevices drivers.

The cros_ec MFD is more complex than expected since it also has helpers to
communicate with the EC. So the driver will only get more bigger as other
protocols are supported in the future. So move the communication protocol
helpers to its own driver as drivers/platform/chrome/cros_ec_proto.c.

Suggested-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/i2c/busses/Kconfig
drivers/input/keyboard/Kconfig
drivers/mfd/Kconfig
drivers/mfd/cros_ec.c
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_proto.c [new file with mode: 0644]