max17042: Add power supply attribute for Coloumb Counter
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Wed, 25 Apr 2012 21:12:20 +0000 (02:42 +0530)
committerbuildbot <buildbot@intel.com>
Mon, 30 Apr 2012 21:13:44 +0000 (14:13 -0700)
commitd7d2fb45b2c73d87ae82ee2ec138c6f95a7bcf4b
treeb59ecb26085ce1d476455845aed9972501d1d02e
parent47fe5114f153b3e4cd3970fbc93a6ccdb4a6f7ea
max17042: Add power supply attribute for Coloumb Counter

BZ: 33602

This patch adds the support for CHARGER_COUNTER power supply
attribute to max17042/47 driver.

Note:QH(Charge Counter) register is not documented in max17042 the Spec.

Change-Id: I0d0c0e42f6905fcf63a16ddd6e5b003909fac907
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/46297
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/power/max17042_battery.c