]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
power: supply: cpcap-charger: Fix charger name
authorTony Lindgren <tony@atomide.com>
Thu, 4 May 2017 00:15:29 +0000 (17:15 -0700)
committerSebastian Reichel <sre@kernel.org>
Thu, 4 May 2017 15:51:32 +0000 (17:51 +0200)
I noticed we have a different name from what Android is using.
Let's not break the /sys/class/power user space interface here
and use the same naming as Android has.

On Android we have the following for droid 4:

$ ls /sys/class/power_supply/
ac battery usb

So let's use the usb naming here for charger too.

Fixes: 0c9888e3c192 ("power: supply: cpcap-charger: Add minimal
CPCAP PMIC battery charger")
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/cpcap-charger.c

index 543a1bd21ab9c74ab15a2a16898fa477ed021818..17907fcaebc37fe961d2ed8c3c876892be407b65 100644 (file)
@@ -566,7 +566,7 @@ out_err:
 }
 
 static const struct power_supply_desc cpcap_charger_usb_desc = {
-       .name           = "cpcap_usb",
+       .name           = "usb",
        .type           = POWER_SUPPLY_TYPE_USB,
        .properties     = cpcap_charger_props,
        .num_properties = ARRAY_SIZE(cpcap_charger_props),