Skip to content

Commit

Permalink
mfd: cros_ec: Instantiate ChromeOS EC character device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and Olof Johansson committed Feb 26, 2015
1 parent e7c256f commit 8a4be85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mfd/cros_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a4be85

Please sign in to comment.