Files
erofs-linux/drivers/platform/chrome
Gwendal Grignou 57b33ff077 mfd: cros_ec: Support multiple EC in a system
Chromebooks can have more than one Embedded Controller so the
cros_ec device id has to be incremented for each EC registered.

Add a new structure to represent multiple EC as different char
devices (e.g: /dev/cros_ec, /dev/cros_pd). It connects to
cros_ec_device and allows sysfs inferface for cros_pd.

Also reduce number of allocated objects, make chromeos sysfs
class object a static and add refcounting to prevent object
deletion while command is in progress.

Signed-off-by: Gwendal Grignou <[email protected]>
Reviewed-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Javier Martinez Canillas <[email protected]>
Tested-by: Heiko Stuebner <[email protected]>
Acked-by: Lee Jones <[email protected]>
Acked-by: Olof Johansson <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
2015-06-15 13:18:23 +01:00
..