OSDN Git Service

qcom-charger: smb138x-charger: change power supply type to usb parallel
authorNicholas Troast <ntroast@codeaurora.org>
Tue, 19 Jul 2016 16:09:12 +0000 (09:09 -0700)
committerNicholas Troast <ntroast@codeaurora.org>
Tue, 19 Jul 2016 16:09:12 +0000 (09:09 -0700)
Currently the type of the parallel power supply is
POWER_SUPPLY_TYPE_BATTERY. Change it to POWER_SUPPLY_TYPE_USB_PARALLEL.

Change-Id: Ic7652e43781f39d3137fb55f2fec2423e457fac4
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
drivers/power/qcom-charger/smb138x-charger.c

index f092f5a..9a6baff 100644 (file)
@@ -423,7 +423,7 @@ static int smb138x_parallel_prop_is_writeable(struct power_supply *psy,
 
 static const struct power_supply_desc parallel_psy_desc = {
        .name                   = "parallel",
-       .type                   = POWER_SUPPLY_TYPE_BATTERY,
+       .type                   = POWER_SUPPLY_TYPE_USB_PARALLEL,
        .properties             = smb138x_parallel_props,
        .num_properties         = ARRAY_SIZE(smb138x_parallel_props),
        .get_property           = smb138x_parallel_get_prop,