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/usb/atm | |
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/usb/atm')
-rw-r--r-- | drivers/usb/atm/speedtch.c | 6 | ||||
-rw-r--r-- | drivers/usb/atm/ueagle-atm.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c index b42092e1f164..98dd9e49b684 100644 --- a/drivers/usb/atm/speedtch.c +++ b/drivers/usb/atm/speedtch.c | |||
@@ -73,9 +73,9 @@ static const char speedtch_driver_name[] = "speedtch"; | |||
73 | #define DEFAULT_SW_BUFFERING 0 | 73 | #define DEFAULT_SW_BUFFERING 0 |
74 | 74 | ||
75 | static unsigned int altsetting = 0; /* zero means: use the default */ | 75 | static unsigned int altsetting = 0; /* zero means: use the default */ |
76 | static int dl_512_first = DEFAULT_DL_512_FIRST; | 76 | static bool dl_512_first = DEFAULT_DL_512_FIRST; |
77 | static int enable_isoc = DEFAULT_ENABLE_ISOC; | 77 | static bool enable_isoc = DEFAULT_ENABLE_ISOC; |
78 | static int sw_buffering = DEFAULT_SW_BUFFERING; | 78 | static bool sw_buffering = DEFAULT_SW_BUFFERING; |
79 | 79 | ||
80 | #define DEFAULT_B_MAX_DSL 8128 | 80 | #define DEFAULT_B_MAX_DSL 8128 |
81 | #define DEFAULT_MODEM_MODE 11 | 81 | #define DEFAULT_MODEM_MODE 11 |
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index 00f171a7a8a0..01ea5d7421d4 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -542,7 +542,7 @@ static int modem_index; | |||
542 | static unsigned int debug; | 542 | static unsigned int debug; |
543 | static unsigned int altsetting[NB_MODEM] = { | 543 | static unsigned int altsetting[NB_MODEM] = { |
544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; | 544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; |
545 | static int sync_wait[NB_MODEM]; | 545 | static bool sync_wait[NB_MODEM]; |
546 | static char *cmv_file[NB_MODEM]; | 546 | static char *cmv_file[NB_MODEM]; |
547 | static int annex[NB_MODEM]; | 547 | static int annex[NB_MODEM]; |
548 | 548 | ||