On Thu, Oct 21, 2010 at 05:55:01PM +0200, Lars-Peter Clausen wrote:
Hm. I'm getting older, it seems. Now can anybody remind me why
pda_power.c doesn't work here? ;-)
This driver looks like a light-weigh version of pda_power, except
that it can do GPIOs directly (instead of is_*_online() callbacks).
Can we instead improve pda_power? Like this:
if (!pdata->is_ac_online && pdata->ac_monitor_gpio)
pdata->is_ac_online = pda_ac_monitor_gpio;
Should look quite cool, I think.
(Plus, we might get rid of ac/usb stuff in that driver, and
pass enum power_supply_type to the callbacks instead).
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--