aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb/omapfb-main.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/video/omap2/omapfb/omapfb-main.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/video/omap2/omapfb/omapfb-main.c')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c8
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
44static char *def_mode; 44static char *def_mode;
45static char *def_vram; 45static char *def_vram;
46static int def_vrfb; 46static bool def_vrfb;
47static int def_rotate; 47static int def_rotate;
48static int def_mirror; 48static bool def_mirror;
49static bool auto_update; 49static bool auto_update;
50static unsigned int auto_update_freq; 50static unsigned int auto_update_freq;
51module_param(auto_update, bool, 0); 51module_param(auto_update, bool, 0);
52module_param(auto_update_freq, uint, 0644); 52module_param(auto_update_freq, uint, 0644);
53 53
54#ifdef DEBUG 54#ifdef DEBUG
55unsigned int omapfb_debug; 55bool omapfb_debug;
56module_param_named(debug, omapfb_debug, bool, 0644); 56module_param_named(debug, omapfb_debug, bool, 0644);
57static unsigned int omapfb_test_pattern; 57static bool omapfb_test_pattern;
58module_param_named(test, omapfb_test_pattern, bool, 0644); 58module_param_named(test, omapfb_test_pattern, bool, 0644);
59#endif 59#endif
60 60