power: battery: sec-battery: Add support for disabling battery charge 59/116159/4
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 23 Feb 2017 07:01:05 +0000 (16:01 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 24 Feb 2017 00:37:33 +0000 (09:37 +0900)
commitfcb71d7b1c186993ccfe1256d07e3c6c94ac8839
tree8c3851d69ed762389a42c8adbf0bd9686bb76f8a
parent952b390abd76d1ad215832d1bf756850a1481e91
power: battery: sec-battery: Add support for disabling battery charge

The new attribute "disable_charge" will be added. If this attribute is
set to 1, battery charging completely stops within "discharging"
state, and it cannot resume until restoring the attribute as 0 or
rebooting the target.

Change-Id: I0638bf73ba89d72c34d1c338a411e6d4978060db
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
drivers/battery/sec_battery.c
include/linux/battery/sec_battery.h