[PATCH 1/3] olpc-battery: add support for CHARGE_FULL_DESIGN

David Woodhouse dwmw2 at infradead.org
Fri Dec 10 19:41:20 EST 2010


On Fri, 2010-12-10 at 16:38 -0800, Andres Salomon wrote:
> It there is, it's not at all clear.  The values are fetched from the
> EC, which get them from the EEPROM. 

If the EC knows them, can't we ask the EC rather than pulling numbers
our of our arse in the kernel?

>  The DT has a battery entry, but it contains nothing useful:
> 
> /proc/device-tree/battery at 0/name
> /proc/device-tree/battery at 0/reg
> /proc/device-tree/battery at 0/.node

The driver ought to be matching on that rather than registering its own
platform device.

-- 
dwmw2




More information about the Devel mailing list