projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74d6cd
)
kernel/acpica: Change button type to int.
author
Sascha Wildner
<saw@online.de>
Sat, 27 Jun 2015 07:17:48 +0000
(09:17 +0200)
committer
Sascha Wildner
<saw@online.de>
Sat, 27 Jun 2015 17:06:08 +0000
(19:06 +0200)
Even though it can have only two values, it's not really a variable meant
to be either true or false.
sys/dev/acpica/acpi_button.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/dev/acpica/acpi_button.c
b/sys/dev/acpica/acpi_button.c
index
67db1ec
..
27294c5
100644
(file)
--- a/
sys/dev/acpica/acpi_button.c
+++ b/
sys/dev/acpica/acpi_button.c
@@
-46,7
+46,7
@@
ACPI_MODULE_NAME("BUTTON")
struct acpi_button_softc {
device_t button_dev;
ACPI_HANDLE button_handle;
-
boolean_t
button_type;
+
int
button_type;
#define ACPI_POWER_BUTTON 0
#define ACPI_SLEEP_BUTTON 1
boolean_t fixed;