diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/acpi/video.c | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 08a44b532f7c..eaef02afc7cf 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -69,21 +69,21 @@ MODULE_AUTHOR("Bruno Ducrot"); | |||
69 | MODULE_DESCRIPTION("ACPI Video Driver"); | 69 | MODULE_DESCRIPTION("ACPI Video Driver"); |
70 | MODULE_LICENSE("GPL"); | 70 | MODULE_LICENSE("GPL"); |
71 | 71 | ||
72 | static int brightness_switch_enabled = 1; | 72 | static bool brightness_switch_enabled = 1; |
73 | module_param(brightness_switch_enabled, bool, 0644); | 73 | module_param(brightness_switch_enabled, bool, 0644); |
74 | 74 | ||
75 | /* | 75 | /* |
76 | * By default, we don't allow duplicate ACPI video bus devices | 76 | * By default, we don't allow duplicate ACPI video bus devices |
77 | * under the same VGA controller | 77 | * under the same VGA controller |
78 | */ | 78 | */ |
79 | static int allow_duplicates; | 79 | static bool allow_duplicates; |
80 | module_param(allow_duplicates, bool, 0644); | 80 | module_param(allow_duplicates, bool, 0644); |
81 | 81 | ||
82 | /* | 82 | /* |
83 | * Some BIOSes claim they use minimum backlight at boot, | 83 | * Some BIOSes claim they use minimum backlight at boot, |
84 | * and this may bring dimming screen after boot | 84 | * and this may bring dimming screen after boot |
85 | */ | 85 | */ |
86 | static int use_bios_initial_backlight = 1; | 86 | static bool use_bios_initial_backlight = 1; |
87 | module_param(use_bios_initial_backlight, bool, 0644); | 87 | module_param(use_bios_initial_backlight, bool, 0644); |
88 | 88 | ||
89 | static int register_count = 0; | 89 | static int register_count = 0; |