aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm
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/usb/atm
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/usb/atm')
-rw-r--r--drivers/usb/atm/speedtch.c6
-rw-r--r--drivers/usb/atm/ueagle-atm.c2
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
75static unsigned int altsetting = 0; /* zero means: use the default */ 75static unsigned int altsetting = 0; /* zero means: use the default */
76static int dl_512_first = DEFAULT_DL_512_FIRST; 76static bool dl_512_first = DEFAULT_DL_512_FIRST;
77static int enable_isoc = DEFAULT_ENABLE_ISOC; 77static bool enable_isoc = DEFAULT_ENABLE_ISOC;
78static int sw_buffering = DEFAULT_SW_BUFFERING; 78static 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;
542static unsigned int debug; 542static unsigned int debug;
543static unsigned int altsetting[NB_MODEM] = { 543static unsigned int altsetting[NB_MODEM] = {
544 [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; 544 [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF};
545static int sync_wait[NB_MODEM]; 545static bool sync_wait[NB_MODEM];
546static char *cmv_file[NB_MODEM]; 546static char *cmv_file[NB_MODEM];
547static int annex[NB_MODEM]; 547static int annex[NB_MODEM];
548 548