summaryrefslogtreecommitdiff
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-01-24 18:45:14 -0800
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-02-02 21:02:37 -0800
commit7e3256e251bb573b9f324289a00bef5ec5b0ecfd (patch)
tree36c19f99a92843847cad31784d26a8ee6b4eb362 /include/linux/compiler-gcc.h
parent336e24550387c399c29c3c5a2637c8f29c0a33c7 (diff)
qpnp-fg-gen3: Show a fake SOC and voltage when battery is missing
During battery hotswap, a strong charger will be supplying enough current to keep the device up and running. Currently, FG driver shows up the monotonic SOC and voltage as-is (which is zero) to the battery power supply and hence to the userspace. Show a fake battery SOC (50%) and fake battery voltage (3.7 V) when the battery is missing. If a strong charger is not present, then the device will be powered down anyways. Change-Id: Ia2c85d1e75bbf0c937a7e36e786362c473c7f7cd Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions