projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9a126
)
ACPI / video: Use true for boolean value
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 23 Jan 2018 15:59:20 +0000
(09:59 -0600)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Sun, 4 Feb 2018 07:55:36 +0000
(08:55 +0100)
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_video.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpi_video.c
b/drivers/acpi/acpi_video.c
index
f53ccc6
..
76fb969
100644
(file)
--- a/
drivers/acpi/acpi_video.c
+++ b/
drivers/acpi/acpi_video.c
@@
-53,7
+53,7
@@
MODULE_AUTHOR("Bruno Ducrot");
MODULE_DESCRIPTION("ACPI Video Driver");
MODULE_LICENSE("GPL");
-static bool brightness_switch_enabled =
1
;
+static bool brightness_switch_enabled =
true
;
module_param(brightness_switch_enabled, bool, 0644);
/*