Messages in this thread | | | Date | Thu, 23 Jul 2009 20:34:51 +0200 | From | Daniel Mack <> | Subject | Re: [PATCH 1/3] pda-power: add set_charged functionaltity |
| |
On Wed, Jul 22, 2009 at 09:41:11PM +0400, Anton Vorontsov wrote: > On Wed, Jul 22, 2009 at 07:20:45PM +0200, Daniel Mack wrote: > > What about something like the patch below? > > > > The platform code interface would look like > > > > struct power_supply *psy = > > power_support_get_by_name("ds2760.0"); > > if (psy) > > power_supply_set_battery_charged(psy); > > > > Couldn't test it yet as my hardware is missing, but I would still like > > to hear your comments about it :) > > Wow, looks perfect. Let me know when you test it, and I'll > apply that patch.
That seems to work well. I'm still resending the last two remaining patches as a follow-up to this one - the changelog had a typo.
Thanks, Daniel
| |