]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
mfd: cros_ec: Instantiate ChromeOS EC character device
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 2 Feb 2015 11:26:26 +0000 (12:26 +0100)
committerOlof Johansson <olof@lixom.net>
Thu, 26 Feb 2015 23:45:09 +0000 (15:45 -0800)
The ChromeOS EC character device is an user-space interface to
allow applications to access the Embedded Controller.

Add a cell for this device so it's spawned from the mfd driver.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Lee Jones <lee.jones@linaro.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/mfd/cros_ec.c

index c872e1b0eaf82109c57167d4f03793b8f428063e..c4aecc6f83739779880f85ae6b5ac659a153c095 100644 (file)
@@ -118,6 +118,10 @@ static const struct mfd_cell cros_devs[] = {
                .id = 2,
                .of_compatible = "google,cros-ec-i2c-tunnel",
        },
+       {
+               .name = "cros-ec-ctl",
+               .id = 3,
+       },
 };
 
 int cros_ec_register(struct cros_ec_device *ec_dev)