[PATCH v2] Re: Battery class driver.

David Zeuthen davidz at redhat.com
Sat Oct 28 15:53:56 EDT 2006


On Sat, 2006-10-28 at 18:55 +0000, Pavel Machek wrote:
> Bad idea... I bet someone will just ignore the units part, because all
> the machines he seen had mW there. 

Sure, user space can do silly things. Just ask davej. Let's try to
assume they don't.

> Just put it into the name:
> 
> power_avg_mV

Bad idea... it means user space will have to try to open different files
and what happens when someone introduces a new unit? Ideally I'd like
the unit to be part of the payload of the sysfs file. Second to that I
think having the unit in a separate file is preferable.

     David





More information about the Devel mailing list