Module Name:    src
Committed By:   riastradh
Date:           Tue Dec 17 22:04:47 UTC 2024

Modified Files:
        src/sys/dev/acpi: acpi_gpio.h

Log Message:
acpi_gpio.h: Add missing includes and forward declarations.

No functional change intended, other than to make potential users
build when they previously wouldn't.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/acpi_gpio.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi_gpio.h
diff -u src/sys/dev/acpi/acpi_gpio.h:1.3 src/sys/dev/acpi/acpi_gpio.h:1.4
--- src/sys/dev/acpi/acpi_gpio.h:1.3	Wed Dec 11 01:00:02 2024
+++ src/sys/dev/acpi/acpi_gpio.h	Tue Dec 17 22:04:47 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_gpio.h,v 1.3 2024/12/11 01:00:02 jmcneill Exp $ */
+/* $NetBSD: acpi_gpio.h,v 1.4 2024/12/17 22:04:47 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2024 The NetBSD Foundation, Inc.
@@ -32,8 +32,16 @@
 #ifndef _DEV_ACPI_ACPI_GPIO_H
 #define _DEV_ACPI_ACPI_GPIO_H
 
+#include <sys/types.h>
+
+#include <sys/device_if.h>
+
+#include <dev/acpi/acpica.h>
+
+struct acpi_devnode;
+
 ACPI_STATUS	acpi_gpio_register(struct acpi_devnode *, device_t,
-				   int (*)(void *, ACPI_RESOURCE_GPIO *, void **), void *);
+		    int (*)(void *, ACPI_RESOURCE_GPIO *, void **), void *);
 ACPI_STATUS	acpi_gpio_get_int(ACPI_HANDLE, u_int, void **, int *, int *);
 ACPI_STATUS	acpi_gpio_get_io(ACPI_HANDLE, u_int, void **, int *);
 

Reply via email to