Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145237521
D39922.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39922.diff
View Options
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -53,10 +53,8 @@
struct acpi_button_softc {
device_t button_dev;
ACPI_HANDLE button_handle;
- boolean_t button_type;
-#define ACPI_POWER_BUTTON 0
-#define ACPI_SLEEP_BUTTON 1
- boolean_t fixed;
+ enum { ACPI_POWER_BUTTON, ACPI_SLEEP_BUTTON } button_type;
+ bool fixed;
#ifdef EVDEV_SUPPORT
struct evdev_dev *button_evdev;
#endif
@@ -120,14 +118,14 @@
} else if (strcmp(str, "ACPI_FPB") == 0) {
device_set_desc(dev, "Power Button (fixed)");
sc->button_type = ACPI_POWER_BUTTON;
- sc->fixed = 1;
+ sc->fixed = true;
} else if (strcmp(str, "PNP0C0E") == 0) {
device_set_desc(dev, "Sleep Button");
sc->button_type = ACPI_SLEEP_BUTTON;
} else if (strcmp(str, "ACPI_FSB") == 0) {
device_set_desc(dev, "Sleep Button (fixed)");
sc->button_type = ACPI_SLEEP_BUTTON;
- sc->fixed = 1;
+ sc->fixed = true;
}
return (rv);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 10:57 AM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28845253
Default Alt Text
D39922.diff (1 KB)
Attached To
Mode
D39922: acpi_button: Replace boolean_t with better types.
Attached
Detach File
Event Timeline
Log In to Comment