commit | 5823d3ec3d43db42afcba167779624433981fbb7 | [log] [tgz] |
---|---|---|
author | Ajay Agarwal <ajaya@codeaurora.org> | Wed Apr 04 19:01:57 2018 +0530 |
committer | Ajay Agarwal <ajaya@codeaurora.org> | Thu Apr 05 11:28:19 2018 +0530 |
tree | e65935e99a35a659e75b685e5c44f2495c7e4ab0 | |
parent | 20f192435f7aa77b54cc6aed84c384f28358c7f5 [diff] |
phy: msm: usb: Fix notification of charging current in SDP As a part of notifying charger current to power supply, we first set POWER_SUPPLY_PROP_ONLINE property which may not be supported resulting in error path and SDP_CURRENT_MAX property not being set at all. Fix this by not setting ONLINE property. Also, refactor the code to vote for charging current only in SDP mode. Change-Id: I3be76ea6185070fa06c8e944878f84d61cb2a3e9 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>