Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2016 02:02:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301418 - head/sys/dev/acpica
Message-ID:  <201606050202.u5522pKu051460@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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

Modified:
  head/sys/dev/acpica/acpi_lid.c

Modified: head/sys/dev/acpica/acpi_lid.c
==============================================================================
--- head/sys/dev/acpica/acpi_lid.c	Sun Jun  5 01:42:58 2016	(r301417)
+++ head/sys/dev/acpica/acpi_lid.c	Sun Jun  5 02:02:51 2016	(r301418)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606050202.u5522pKu051460>