power_supply: cleanup of the OLPC battery driver
authorAndres Salomon <dilinger@queued.net>
Fri, 2 May 2008 20:41:59 +0000 (13:41 -0700)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Sun, 4 May 2008 09:14:05 +0000 (13:14 +0400)
commitb2bd8a3bcdd18101eb5d85c267c1a1fb8ce9acc7
tree327477daa7d5ff48e9572958f7ca16214400ebd0
parentd7eb9e36c42504e87c7d92dd5c05cb6f2cf74d28
power_supply: cleanup of the OLPC battery driver

Move portions of the massive switch statement into functions.  The layout of
this thing has already caused one bug (a break in the wrong place), it needed
to shrink.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/olpc_battery.c