aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-09-27 00:56:37 +0200
committerJoonas Kylmälä <joonas.kylmala@iki.fi>2020-07-09 14:57:50 -0400
commit963f0ae63000c5d3bcfd0b04a30fb90647253038 (patch)
treecac85e8349dfdc40803b9996893fefa4aeab4ea7 /mm/sparse.c
parent2900a9466faaf036ed20db5bdf91861aedecc6d1 (diff)
downloadkernel_replicant_linux-963f0ae63000c5d3bcfd0b04a30fb90647253038.tar.gz
kernel_replicant_linux-963f0ae63000c5d3bcfd0b04a30fb90647253038.tar.bz2
kernel_replicant_linux-963f0ae63000c5d3bcfd0b04a30fb90647253038.zip
power_supply: max77693: Listen for cable events and enable charging
This patch adds a listener for extcon cable events and enables charging if an USB cable is connected. It recognizes SDP and DCP cable types and treats them the same (same input current and fast charge current). The maximum input current is set before the charger is enabled and before the charger gets disabled, the maximum input current is set to zero. The listener is inspired by the listener implementation that was used for the AXP288 Charger driver. The patch also adds support for the CURRENT_NOW property. It reads the fast charge current that gets set before the charger is enabled or disabled. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> GNUtoo@cyberdimension.org: small fixes Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions