bq27x00: Prepare code for addition of bq27000 platform driver
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 24 May 2010 17:37:58 +0000 (19:37 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 22 Feb 2011 10:02:41 +0000 (11:02 +0100)
commita40402ef0bf3b6e53a7dfd396e9487eb2f613e19
tree69abcc1951f19164a0f96f7a5ec3cc004144bc49
parent3413b4ea250ff0b4142a154a2764e33979957e8b
bq27x00: Prepare code for addition of bq27000 platform driver

This patch simplifies the drivers data structure and moves code to be
shared by the bq27000 and bq27200/bq27500 init functions into a common
function.
This patch has no functional changes, it only moves code around.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Rodolfo Giometti <giometti@linux.it>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
drivers/power/bq27x00_battery.c