power: battery: sec-battery: Support force disabling battery charge 67/113967/11
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 9 Feb 2017 10:53:03 +0000 (19:53 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 14 Feb 2017 06:43:51 +0000 (15:43 +0900)
commit93f8519fba748726d6b87e680b4c42ced0b267cf
tree2a78c735ef187c32019edc1a3ecd900fa7313c18
parent9bcd3cf13b17c8c396ef0bb7cb8602b4a2407eab
power: battery: sec-battery: Support force disabling battery charge

The new attribute "disable_charge" will be added. If this attribute is
set to 1, battery charging is completely stopped within "discharging"
state.

Until setting the attribute to 0 or reboot the target, charging cannot
be resumed.

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