svn commit: r301418 - head/sys/dev/acpica
John Baldwin
jhb at freebsd.org
Mon Jun 6 19:11:46 UTC 2016
On Sunday, June 05, 2016 02:02:51 AM Adrian Chadd wrote:
> Author: adrian
> Date: Sun Jun 5 02:02:51 2016
> New Revision: 301418
> URL: https://svnweb.freebsd.org/changeset/base/301418
>
> Log:
> [acpi] graphics drivers want access to acpi lid handle
>
> the graphics drivers can benefit from access to the lid handle for querying and getting notifications
>
> Submitted by: kmacy
> Differential Revision: https://reviews.freebsd.org/D6643
One could have done this without exposing a global variable:
device_t dev;
dev = devclass_get_device(devclass_find("acpi_lid"), 0);
handle = acpi_get_handle(dev);
Alternatively, we could provide a function locate an ACPI handle
by _HID similar to pci_get_class().
--
John Baldwin
More information about the svn-src-all
mailing list