power: qpnp-smbcharger: Report charger types in REAL_TYPE property
Use POWER_SUPPLY_PROP_REAL_TYPE property to report charger types between
charger and USB drivers. Update usb_psy POWER_SUPPLY_PROP_TYPE property
to POWER_SUPPLY_TYPE_USB_DCP if it is HVDCP/HVDCP3 type and ignore
reporting POWER_SUPPLY_TYPE_UNKNOWN. This helps the battery HAL to
recongize HVDCP/HVDCP3 as AC chargers.
Change-Id: Id0116608270dd8c608136d5dede5a09f3538e128
Signed-off-by:
Fenglin Wu <fenglinw@codeaurora.org>
Loading
Please register or sign in to comment