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>
This commit is contained in:
@@ -43,18 +43,18 @@
|
||||
|
||||
static char *def_mode;
|
||||
static char *def_vram;
|
||||
static int def_vrfb;
|
||||
static bool def_vrfb;
|
||||
static int def_rotate;
|
||||
static int def_mirror;
|
||||
static bool def_mirror;
|
||||
static bool auto_update;
|
||||
static unsigned int auto_update_freq;
|
||||
module_param(auto_update, bool, 0);
|
||||
module_param(auto_update_freq, uint, 0644);
|
||||
|
||||
#ifdef DEBUG
|
||||
unsigned int omapfb_debug;
|
||||
bool omapfb_debug;
|
||||
module_param_named(debug, omapfb_debug, bool, 0644);
|
||||
static unsigned int omapfb_test_pattern;
|
||||
static bool omapfb_test_pattern;
|
||||
module_param_named(test, omapfb_test_pattern, bool, 0644);
|
||||
#endif
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
#include <video/omapdss.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
extern unsigned int omapfb_debug;
|
||||
extern bool omapfb_debug;
|
||||
#define DBG(format, ...) \
|
||||
do { \
|
||||
if (omapfb_debug) \
|
||||
|
Reference in New Issue
Block a user