acpi battery rework patch

Doug Rabson dfr at nlsystems.com
Mon Jul 25 07:53:56 GMT 2005


On Monday 25 July 2005 01:23, Nate Lawson wrote:
> 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.

You are right.


More information about the freebsd-acpi mailing list