mfd: cros_ec: Switch to use the new cros-ec-chardev driver
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 2 Sep 2019 09:53:03 +0000 (11:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 2 Sep 2019 10:33:27 +0000 (11:33 +0100)
commit459aedb9a5d4b92e4aee343ee8ee5aeca8e1d93a
treea281ebec665528506d8a1f21baccc5535f8e9c0a
parenteda2e30c6684d67288edb841c6125d48c608a242
mfd: cros_ec: Switch to use the new cros-ec-chardev driver

With the purpose of remove the things that far extends the bounds of
what a MFD was designed to do, instantiate the new platform misc
cros-ec-chardev driver and get rid of all the unneeded code. After this
patch the misc chardev driver is a sub-device of the MFD, and all the
new file operations should be implemented there.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c
include/linux/mfd/cros_ec.h