OSDN Git Service

power: qpnp-fg-gen3: apply SOC linearization based on user input
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Wed, 26 Jul 2017 03:01:25 +0000 (20:01 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 1 Sep 2017 02:25:34 +0000 (19:25 -0700)
commitb1c9e9171df3d5d6c374197fcc087a47144f8593
tree14fb67f2c1cea57c62c86dbc29ece339fcb3a1e3
parent2f60027ca7cc480ebc6c24543dfd61013c09afcb
power: qpnp-fg-gen3: apply SOC linearization based on user input

Currently, SOC linearization is done when SOC masking feature is
enabled to spread out the drop in SOC across a wider range and
for better user experience. Make this configurable through a DT
property "qcom,linearize-soc" so that the user can enable it as
and when required.

Change-Id: Ic9f5f04f4e872d7804152c17206a8b204de3a9c1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt
drivers/power/supply/qcom/fg-core.h
drivers/power/supply/qcom/qpnp-fg-gen3.c