pda_power: various cleanups
authorAnton Vorontsov <cbouatmailru@gmail.com>
Sat, 12 Jan 2008 23:39:17 +0000 (02:39 +0300)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 1 Feb 2008 23:44:34 +0000 (02:44 +0300)
commitbfde2662ae8c7f0054990e59456718761a352651
treedc37db66ff0ec400ffa18ba0e2f625aec8c50951
parentdffd28a13a439e672c735d3fc87844d28cbacc65
pda_power: various cleanups

- handle spurious interrupts correctly;
- get rid of pda_power_supplies array, use two variables instead;
- factor out psy_changed() function, it will be used for polling.

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
drivers/power/pda_power.c