aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/cdrom.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/cdrom/cdrom.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/cdrom/cdrom.c')
-rw-r--r--drivers/cdrom/cdrom.c12
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 */
288static int debug; 288static bool debug;
289/* used to keep tray locked at all times */ 289/* used to keep tray locked at all times */
290static int keeplocked; 290static int keeplocked;
291/* default compatibility mode */ 291/* default compatibility mode */
292static int autoclose=1; 292static bool autoclose=1;
293static int autoeject; 293static bool autoeject;
294static int lockdoor = 1; 294static bool lockdoor = 1;
295/* will we ever get to use this... sigh. */ 295/* will we ever get to use this... sigh. */
296static int check_media_type; 296static bool check_media_type;
297/* automatically restart mrw format */ 297/* automatically restart mrw format */
298static int mrw_format_restart = 1; 298static bool mrw_format_restart = 1;
299module_param(debug, bool, 0); 299module_param(debug, bool, 0);
300module_param(autoclose, bool, 0); 300module_param(autoclose, bool, 0);
301module_param(autoeject, bool, 0); 301module_param(autoeject, bool, 0);