acpi battery rework patch

Nate Lawson nate at root.org
Mon Jul 25 00:24:23 GMT 2005


Takanori Watanabe wrote:
> In message <42E29CAA.1020007 at root.org>, Nate Lawson さんいわく:
>>Sorry, the problem was I left a file out of the diff.  I just committed 
>>the patch so please just cvsup and test from 7-CURRENT.
> 
> I don't tried yet, but devclass battery should be shared between 
> any kind of batteries in your way. So move acpi_cmbat_devclass into 
> acpi_battery.c and change its name to acpi_battery_devclass.

Yes, that is how the patch already works.  As dfr@ told me, devclasses 
are matched based on name (i.e. "battery"), not by actual storage for 
the devclass_t.  So there is no need to share anything but just reuse 
the same class string.  Perhaps he can correct me if I'm wrong.

-- 
Nate


More information about the freebsd-acpi mailing list