[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
This commit is contained in:
Adrian Chadd 2016-06-05 02:02:51 +00:00
parent aed8f11013
commit 85cb8105ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301418

View file

@ -52,6 +52,8 @@ struct acpi_lid_softc {
int lid_status; /* open or closed */
};
ACPI_HANDLE acpi_lid_handle;
ACPI_SERIAL_DECL(lid, "ACPI lid");
static int acpi_lid_probe(device_t dev);
@ -105,7 +107,7 @@ acpi_lid_attach(device_t dev)
sc = device_get_softc(dev);
sc->lid_dev = dev;
sc->lid_handle = acpi_get_handle(dev);
acpi_lid_handle = sc->lid_handle = acpi_get_handle(dev);
/*
* If a system does not get lid events, it may make sense to change