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/video/omap2/omapfb/omapfb-main.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/video/omap2/omapfb/omapfb-main.c')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 70aa47de7146..68ba1f800082 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -43,18 +43,18 @@ | |||
43 | 43 | ||
44 | static char *def_mode; | 44 | static char *def_mode; |
45 | static char *def_vram; | 45 | static char *def_vram; |
46 | static int def_vrfb; | 46 | static bool def_vrfb; |
47 | static int def_rotate; | 47 | static int def_rotate; |
48 | static int def_mirror; | 48 | static bool def_mirror; |
49 | static bool auto_update; | 49 | static bool auto_update; |
50 | static unsigned int auto_update_freq; | 50 | static unsigned int auto_update_freq; |
51 | module_param(auto_update, bool, 0); | 51 | module_param(auto_update, bool, 0); |
52 | module_param(auto_update_freq, uint, 0644); | 52 | module_param(auto_update_freq, uint, 0644); |
53 | 53 | ||
54 | #ifdef DEBUG | 54 | #ifdef DEBUG |
55 | unsigned int omapfb_debug; | 55 | bool omapfb_debug; |
56 | module_param_named(debug, omapfb_debug, bool, 0644); | 56 | module_param_named(debug, omapfb_debug, bool, 0644); |
57 | static unsigned int omapfb_test_pattern; | 57 | static bool omapfb_test_pattern; |
58 | module_param_named(test, omapfb_test_pattern, bool, 0644); | 58 | module_param_named(test, omapfb_test_pattern, bool, 0644); |
59 | #endif | 59 | #endif |
60 | 60 | ||