diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-09-02 12:53:02 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-09-02 13:33:21 +0300 |
commit | eda2e30c6684d67288edb841c6125d48c608a242 (patch) | |
tree | 84d8a712522a5b133598cce149beb0e03a42d689 /drivers/mfd/cros_ec_dev.c | |
parent | 47f11e0b40e97f373da4efbacee0a9526c816ed5 (diff) | |
download | linux-eda2e30c6684d67288edb841c6125d48c608a242.tar.xz |
mfd / platform: cros_ec: Miscellaneous character device to talk with the EC
That's a driver to talk with the ChromeOS Embedded Controller via a
miscellaneous character device, it creates an entry in /dev for every
instance and implements basic file operations for communicating with the
Embedded Controller with an userspace application. The API is moved to
the uapi folder, which is supposed to contain the user space API of the
kernel.
Note that this will replace current character device interface
implemented in the cros-ec-dev driver in the MFD subsystem. The idea is
to move all the functionality that extends the bounds of what MFD was
designed to platform/chrome subsystem.
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>
Diffstat (limited to 'drivers/mfd/cros_ec_dev.c')
-rw-r--r-- | drivers/mfd/cros_ec_dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index 41dccced5026..4c96445b1bf5 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -7,15 +7,17 @@ #include <linux/fs.h> #include <linux/mfd/core.h> +#include <linux/mfd/cros_ec.h> +#include <linux/mfd/cros_ec_commands.h> #include <linux/module.h> #include <linux/mod_devicetable.h> +#include <linux/platform_data/cros_ec_chardev.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm.h> #include <linux/slab.h> #include <linux/uaccess.h> -#include "cros_ec_dev.h" #define DRV_NAME "cros-ec-dev" |