mfd: cros_ec: Instantiate the CrOS USB PD logger driver
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 3 Apr 2019 14:05:29 +0000 (16:05 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 14 May 2019 07:13:26 +0000 (08:13 +0100)
Add the cros-usbpd-logger driver for logging event data for the USB PD
charger available in the Embedded Controller on ChromeOS systems. The
logging feature is logically separate functionality from charge manager,
hence is instantiated as a different driver.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Guenetr Roeck <linux@roeck-us.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c

index 596f124f2a54966e48aa0198cf5b74f0b282e24a..a3b319913097d8a1af0fb832601554fb81569ed5 100644 (file)
@@ -385,7 +385,8 @@ static const struct mfd_cell cros_ec_rtc_cells[] = {
 };
 
 static const struct mfd_cell cros_usbpd_charger_cells[] = {
-       { .name = "cros-usbpd-charger" }
+       { .name = "cros-usbpd-charger" },
+       { .name = "cros-usbpd-logger" },
 };
 
 static const struct mfd_cell cros_ec_platform_cells[] = {