summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-06-05 02:02:51 +0000
committeradrian <adrian@FreeBSD.org>2016-06-05 02:02:51 +0000
commitafc736c3916916980f388bf21a855df1d5d76742 (patch)
treea1e60fabf49295c270d12676856f28b696dc455a
parent060f0604daced4cc92b58f705de7b06eb211c08e (diff)
downloadFreeBSD-src-afc736c3916916980f388bf21a855df1d5d76742.zip
FreeBSD-src-afc736c3916916980f388bf21a855df1d5d76742.tar.gz
[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
-rw-r--r--sys/dev/acpica/acpi_lid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_lid.c b/sys/dev/acpica/acpi_lid.c
index dcdd2e6..e1e6688 100644
--- a/sys/dev/acpica/acpi_lid.c
+++ b/sys/dev/acpica/acpi_lid.c
@@ -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
OpenPOWER on IntegriCloud