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/cdrom/cdrom.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/cdrom/cdrom.c')
-rw-r--r-- | drivers/cdrom/cdrom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 2118211aff99..1bbf7645a97c 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -285,17 +285,17 @@ | |||
285 | #include <asm/uaccess.h> | 285 | #include <asm/uaccess.h> |
286 | 286 | ||
287 | /* used to tell the module to turn on full debugging messages */ | 287 | /* used to tell the module to turn on full debugging messages */ |
288 | static int debug; | 288 | static bool debug; |
289 | /* used to keep tray locked at all times */ | 289 | /* used to keep tray locked at all times */ |
290 | static int keeplocked; | 290 | static int keeplocked; |
291 | /* default compatibility mode */ | 291 | /* default compatibility mode */ |
292 | static int autoclose=1; | 292 | static bool autoclose=1; |
293 | static int autoeject; | 293 | static bool autoeject; |
294 | static int lockdoor = 1; | 294 | static bool lockdoor = 1; |
295 | /* will we ever get to use this... sigh. */ | 295 | /* will we ever get to use this... sigh. */ |
296 | static int check_media_type; | 296 | static bool check_media_type; |
297 | /* automatically restart mrw format */ | 297 | /* automatically restart mrw format */ |
298 | static int mrw_format_restart = 1; | 298 | static bool mrw_format_restart = 1; |
299 | module_param(debug, bool, 0); | 299 | module_param(debug, bool, 0); |
300 | module_param(autoclose, bool, 0); | 300 | module_param(autoclose, bool, 0); |
301 | module_param(autoeject, bool, 0); | 301 | module_param(autoeject, bool, 0); |