]> git.karo-electronics.de Git - linux-beck.git/commit
smb347-charger: Clean up battery attributes
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Sat, 5 May 2012 16:03:54 +0000 (21:33 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sun, 6 May 2012 11:46:18 +0000 (04:46 -0700)
commitfcc015cda7dfe1af26e17bbed21eecb742183b7e
treeb7121101f98a6beb33213a381174097f48d98ef0
parent9a8422d205ea142a27c2573e5ca3d2cc87d75260
smb347-charger: Clean up battery attributes

CURRENT_NOW and VOLTAGE_NOW should be instantaneous readings
from power supply(ex: battery).

smb347 charger driver reports charge voltage for VOLTAGE_NOW
and charge current for CURRENT_NOW attributes which are not
instantaneous readings.

This patch removes the battery VOLTAGE_NOW and CURRENT_NOW
properties from the driver and also removes hw_to_current()
which is not required anymore.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/smb347-charger.c