Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/acpi Shim acpi_lid_no...



details:   https://anonhg.NetBSD.org/src/rev/11bd99384f81
branches:  riastradh-drm2
changeset: 788421:11bd99384f81
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:43:41 2013 +0000

description:
Shim acpi_lid_notifier implementation in drm2 Linux <acpi/button.h>.

diffstat:

 sys/external/bsd/drm2/include/acpi/button.h |  24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 9b76ac0d9c56 -r 11bd99384f81 sys/external/bsd/drm2/include/acpi/button.h
--- a/sys/external/bsd/drm2/include/acpi/button.h       Wed Jul 24 03:43:26 2013 +0000
+++ b/sys/external/bsd/drm2/include/acpi/button.h       Wed Jul 24 03:43:41 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: button.h,v 1.1.2.1 2013/07/24 03:12:15 riastradh Exp $ */
+/*     $NetBSD: button.h,v 1.1.2.2 2013/07/24 03:43:41 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,26 @@
 #ifndef _DRM2_COMPAT_ACPI_BUTTON_H_
 #define _DRM2_COMPAT_ACPI_BUTTON_H_
 
+struct notifier_block;
+
+/* XXX This obviously needs a real implementation...  */
+
+static inline int
+acpi_lid_notifier_register(struct notifier_block *notifier)
+{
+       return 0;
+}
+
+static inline int
+acpi_lid_notifier_unregister(struct notifier_block *notifier)
+{
+       return 0;
+}
+
+static inline int
+acpi_lid_open(void)
+{
+       return 1;
+}
+
 #endif  /* _DRM2_COMPAT_ACPI_BUTTON_H_ */



Home | Main Index | Thread Index | Old Index