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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"