aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
committerRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
commit90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch)
treefcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/acpi/video.c
parent476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (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.c6
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");
69MODULE_DESCRIPTION("ACPI Video Driver"); 69MODULE_DESCRIPTION("ACPI Video Driver");
70MODULE_LICENSE("GPL"); 70MODULE_LICENSE("GPL");
71 71
72static int brightness_switch_enabled = 1; 72static bool brightness_switch_enabled = 1;
73module_param(brightness_switch_enabled, bool, 0644); 73module_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 */
79static int allow_duplicates; 79static bool allow_duplicates;
80module_param(allow_duplicates, bool, 0644); 80module_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 */
86static int use_bios_initial_backlight = 1; 86static bool use_bios_initial_backlight = 1;
87module_param(use_bios_initial_backlight, bool, 0644); 87module_param(use_bios_initial_backlight, bool, 0644);
88 88
89static int register_count = 0; 89static int register_count = 0;