aboutsummaryrefslogtreecommitdiffstats
path: root/fs/read_write.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-09-27 00:56:37 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-09-27 02:50:40 +0200
commit8b28321e779c61ef1586a5e42a7b6d40c907abf4 (patch)
tree9c68c10dbdb9966ad126c61eaf7b451dff2816c2 /fs/read_write.c
parent6ddfe65139bd3ea668635aa939ac9ce2597afff4 (diff)
downloadkernel_i9300_mainline-8b28321e779c61ef1586a5e42a7b6d40c907abf4.zip
kernel_i9300_mainline-8b28321e779c61ef1586a5e42a7b6d40c907abf4.tar.gz
kernel_i9300_mainline-8b28321e779c61ef1586a5e42a7b6d40c907abf4.tar.bz2
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>
Diffstat (limited to 'fs/read_write.c')
0 files changed, 0 insertions, 0 deletions