power: rx51_battery: Fix reporting correct values
authorPali Rohár <pali.rohar@gmail.com>
Fri, 15 Feb 2013 22:56:50 +0000 (23:56 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Apr 2013 14:36:27 +0000 (16:36 +0200)
commit8059c1c6be45973ea72342567a6ede5f4f0bf8e7
treee9ae060b1e6a8eb62cbf886efc2c6a659eaf99a4
parenta5055d5d683605210f77d46614bbdb389c1e4a07
power: rx51_battery: Fix reporting correct values

Tell twl4030_madc_conversion that this driver needs raw values.
Driver twl4030_madc has some hardcoded values and conversation
functions which are incorrect for Nokia RX-51 board. This driver
rx51_battery expects raw values which convert itself.

This patch fixing values reported by power supply interface.
Before this patch driver reported always incorrect values on
3.8 kernel (sometimes design capacity was negative).

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/power/rx51_battery.c