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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
Rusty Russell 2012-01-13 09:32:20 +10:30
commit 90ab5ee941
283 changed files with 471 additions and 465 deletions

View file

@ -31,7 +31,7 @@
/* There is only one motion sensor per machine */
struct ams ams_info;
static unsigned int verbose;
static bool verbose;
module_param(verbose, bool, 0644);
MODULE_PARM_DESC(verbose, "Show free falls and shocks in kernel output");

View file

@ -19,11 +19,11 @@
#include "ams.h"
static unsigned int joystick;
static bool joystick;
module_param(joystick, bool, S_IRUGO);
MODULE_PARM_DESC(joystick, "Enable the input class device on module load");
static unsigned int invert;
static bool invert;
module_param(invert, bool, S_IWUSR | S_IRUGO);
MODULE_PARM_DESC(invert, "Invert input data on X and Y axis");

View file

@ -52,7 +52,7 @@ static const char *sensor_location[3];
static int limit_adjust;
static int fan_speed = -1;
static int verbose;
static bool verbose;
MODULE_AUTHOR("Colin Leroy <[email protected]>");
MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "