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/hwmon/lm93.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/hwmon/lm93.c')
-rw-r--r-- | drivers/hwmon/lm93.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 3b43df418613..8bd6c5c9e05b 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c | |||
@@ -151,12 +151,12 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; | |||
151 | 151 | ||
152 | /* Insmod parameters */ | 152 | /* Insmod parameters */ |
153 | 153 | ||
154 | static int disable_block; | 154 | static bool disable_block; |
155 | module_param(disable_block, bool, 0); | 155 | module_param(disable_block, bool, 0); |
156 | MODULE_PARM_DESC(disable_block, | 156 | MODULE_PARM_DESC(disable_block, |
157 | "Set to non-zero to disable SMBus block data transactions."); | 157 | "Set to non-zero to disable SMBus block data transactions."); |
158 | 158 | ||
159 | static int init; | 159 | static bool init; |
160 | module_param(init, bool, 0); | 160 | module_param(init, bool, 0); |
161 | MODULE_PARM_DESC(init, "Set to non-zero to force chip initialization."); | 161 | MODULE_PARM_DESC(init, "Set to non-zero to force chip initialization."); |
162 | 162 | ||