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 | |
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')
-rw-r--r-- | drivers/hwmon/abituguru.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/abituguru3.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/acpi_power_meter.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/adm1021.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/ads7828.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/dme1737.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/it87.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/lm93.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/max1668.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83627hf.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83781d.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/w83791d.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/w83792d.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83793.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83795.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83l786ng.c | 2 |
16 files changed, 23 insertions, 23 deletions
diff --git a/drivers/hwmon/abituguru.c b/drivers/hwmon/abituguru.c index 65a35cf5b3c5..3b728e8f169b 100644 --- a/drivers/hwmon/abituguru.c +++ b/drivers/hwmon/abituguru.c | |||
@@ -145,7 +145,7 @@ static const u8 abituguru_pwm_max[5] = { 0, 255, 255, 75, 75 }; | |||
145 | 145 | ||
146 | 146 | ||
147 | /* Insmod parameters */ | 147 | /* Insmod parameters */ |
148 | static int force; | 148 | static bool force; |
149 | module_param(force, bool, 0); | 149 | module_param(force, bool, 0); |
150 | MODULE_PARM_DESC(force, "Set to one to force detection."); | 150 | MODULE_PARM_DESC(force, "Set to one to force detection."); |
151 | static int bank1_types[ABIT_UGURU_MAX_BANK1_SENSORS] = { -1, -1, -1, -1, -1, | 151 | static int bank1_types[ABIT_UGURU_MAX_BANK1_SENSORS] = { -1, -1, -1, -1, -1, |
diff --git a/drivers/hwmon/abituguru3.c b/drivers/hwmon/abituguru3.c index d30855a75786..34a14a77e008 100644 --- a/drivers/hwmon/abituguru3.c +++ b/drivers/hwmon/abituguru3.c | |||
@@ -603,11 +603,11 @@ static const struct abituguru3_motherboard_info abituguru3_motherboards[] = { | |||
603 | 603 | ||
604 | 604 | ||
605 | /* Insmod parameters */ | 605 | /* Insmod parameters */ |
606 | static int force; | 606 | static bool force; |
607 | module_param(force, bool, 0); | 607 | module_param(force, bool, 0); |
608 | MODULE_PARM_DESC(force, "Set to one to force detection."); | 608 | MODULE_PARM_DESC(force, "Set to one to force detection."); |
609 | /* Default verbose is 1, since this driver is still in the testing phase */ | 609 | /* Default verbose is 1, since this driver is still in the testing phase */ |
610 | static int verbose = 1; | 610 | static bool verbose = 1; |
611 | module_param(verbose, bool, 0644); | 611 | module_param(verbose, bool, 0644); |
612 | MODULE_PARM_DESC(verbose, "Enable/disable verbose error reporting"); | 612 | MODULE_PARM_DESC(verbose, "Enable/disable verbose error reporting"); |
613 | 613 | ||
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 522860ab6ce8..554f046bcf20 100644 --- a/drivers/hwmon/acpi_power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c | |||
@@ -58,7 +58,7 @@ ACPI_MODULE_NAME(ACPI_POWER_METER_NAME); | |||
58 | #define POWER_ALARM_NAME "power1_alarm" | 58 | #define POWER_ALARM_NAME "power1_alarm" |
59 | 59 | ||
60 | static int cap_in_hardware; | 60 | static int cap_in_hardware; |
61 | static int force_cap_on; | 61 | static bool force_cap_on; |
62 | 62 | ||
63 | static int can_cap_in_hardware(void) | 63 | static int can_cap_in_hardware(void) |
64 | { | 64 | { |
diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c index 1ad0a885c5a5..0158cc35cb2e 100644 --- a/drivers/hwmon/adm1021.c +++ b/drivers/hwmon/adm1021.c | |||
@@ -103,7 +103,7 @@ static int adm1021_remove(struct i2c_client *client); | |||
103 | static struct adm1021_data *adm1021_update_device(struct device *dev); | 103 | static struct adm1021_data *adm1021_update_device(struct device *dev); |
104 | 104 | ||
105 | /* (amalysh) read only mode, otherwise any limit's writing confuse BIOS */ | 105 | /* (amalysh) read only mode, otherwise any limit's writing confuse BIOS */ |
106 | static int read_only; | 106 | static bool read_only; |
107 | 107 | ||
108 | 108 | ||
109 | static const struct i2c_device_id adm1021_id[] = { | 109 | static const struct i2c_device_id adm1021_id[] = { |
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c index cfcc3b6fb6bf..ed60242d6a0a 100644 --- a/drivers/hwmon/ads7828.c +++ b/drivers/hwmon/ads7828.c | |||
@@ -48,8 +48,8 @@ static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, | |||
48 | I2C_CLIENT_END }; | 48 | I2C_CLIENT_END }; |
49 | 49 | ||
50 | /* Module parameters */ | 50 | /* Module parameters */ |
51 | static int se_input = 1; /* Default is SE, 0 == diff */ | 51 | static bool se_input = 1; /* Default is SE, 0 == diff */ |
52 | static int int_vref = 1; /* Default is internal ref ON */ | 52 | static bool int_vref = 1; /* Default is internal ref ON */ |
53 | static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */ | 53 | static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */ |
54 | module_param(se_input, bool, S_IRUGO); | 54 | module_param(se_input, bool, S_IRUGO); |
55 | module_param(int_vref, bool, S_IRUGO); | 55 | module_param(int_vref, bool, S_IRUGO); |
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c index d9803958e49f..ffb229af7861 100644 --- a/drivers/hwmon/dme1737.c +++ b/drivers/hwmon/dme1737.c | |||
@@ -45,7 +45,7 @@ | |||
45 | static struct platform_device *pdev; | 45 | static struct platform_device *pdev; |
46 | 46 | ||
47 | /* Module load parameters */ | 47 | /* Module load parameters */ |
48 | static int force_start; | 48 | static bool force_start; |
49 | module_param(force_start, bool, 0); | 49 | module_param(force_start, bool, 0); |
50 | MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs"); | 50 | MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs"); |
51 | 51 | ||
@@ -53,7 +53,7 @@ static unsigned short force_id; | |||
53 | module_param(force_id, ushort, 0); | 53 | module_param(force_id, ushort, 0); |
54 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); | 54 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); |
55 | 55 | ||
56 | static int probe_all_addr; | 56 | static bool probe_all_addr; |
57 | module_param(probe_all_addr, bool, 0); | 57 | module_param(probe_all_addr, bool, 0); |
58 | MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC " | 58 | MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC " |
59 | "addresses"); | 59 | "addresses"); |
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 38c0b87676de..603ef2af2707 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -146,10 +146,10 @@ static inline void superio_exit(void) | |||
146 | #define IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */ | 146 | #define IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */ |
147 | 147 | ||
148 | /* Update battery voltage after every reading if true */ | 148 | /* Update battery voltage after every reading if true */ |
149 | static int update_vbat; | 149 | static bool update_vbat; |
150 | 150 | ||
151 | /* Not all BIOSes properly configure the PWM registers */ | 151 | /* Not all BIOSes properly configure the PWM registers */ |
152 | static int fix_pwm_polarity; | 152 | static bool fix_pwm_polarity; |
153 | 153 | ||
154 | /* Many IT87 constants specified below */ | 154 | /* Many IT87 constants specified below */ |
155 | 155 | ||
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 | ||
diff --git a/drivers/hwmon/max1668.c b/drivers/hwmon/max1668.c index 6914195cfd35..88953f99e914 100644 --- a/drivers/hwmon/max1668.c +++ b/drivers/hwmon/max1668.c | |||
@@ -59,7 +59,7 @@ static unsigned short max1668_addr_list[] = { | |||
59 | #define DEV_ID_MAX1989 0xb | 59 | #define DEV_ID_MAX1989 0xb |
60 | 60 | ||
61 | /* read only mode module parameter */ | 61 | /* read only mode module parameter */ |
62 | static int read_only; | 62 | static bool read_only; |
63 | module_param(read_only, bool, 0); | 63 | module_param(read_only, bool, 0); |
64 | MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); | 64 | MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); |
65 | 65 | ||
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index bde50e34d013..374118f2b9f9 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c | |||
@@ -71,7 +71,7 @@ module_param(force_i2c, byte, 0); | |||
71 | MODULE_PARM_DESC(force_i2c, | 71 | MODULE_PARM_DESC(force_i2c, |
72 | "Initialize the i2c address of the sensors"); | 72 | "Initialize the i2c address of the sensors"); |
73 | 73 | ||
74 | static int init = 1; | 74 | static bool init = 1; |
75 | module_param(init, bool, 0); | 75 | module_param(init, bool, 0); |
76 | MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); | 76 | MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); |
77 | 77 | ||
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index 65b685e2c7b7..17a8fa2d9ae9 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -67,11 +67,11 @@ module_param_array(force_subclients, short, NULL, 0); | |||
67 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " | 67 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " |
68 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); | 68 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); |
69 | 69 | ||
70 | static int reset; | 70 | static bool reset; |
71 | module_param(reset, bool, 0); | 71 | module_param(reset, bool, 0); |
72 | MODULE_PARM_DESC(reset, "Set to one to reset chip on load"); | 72 | MODULE_PARM_DESC(reset, "Set to one to reset chip on load"); |
73 | 73 | ||
74 | static int init = 1; | 74 | static bool init = 1; |
75 | module_param(init, bool, 0); | 75 | module_param(init, bool, 0); |
76 | MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); | 76 | MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); |
77 | 77 | ||
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c index 6e5d0ae594b0..35aa5149307a 100644 --- a/drivers/hwmon/w83791d.c +++ b/drivers/hwmon/w83791d.c | |||
@@ -58,11 +58,11 @@ module_param_array(force_subclients, short, NULL, 0); | |||
58 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " | 58 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " |
59 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); | 59 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); |
60 | 60 | ||
61 | static int reset; | 61 | static bool reset; |
62 | module_param(reset, bool, 0); | 62 | module_param(reset, bool, 0); |
63 | MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset"); | 63 | MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset"); |
64 | 64 | ||
65 | static int init; | 65 | static bool init; |
66 | module_param(init, bool, 0); | 66 | module_param(init, bool, 0); |
67 | MODULE_PARM_DESC(init, "Set to one to force extra software initialization"); | 67 | MODULE_PARM_DESC(init, "Set to one to force extra software initialization"); |
68 | 68 | ||
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c index 9ded133e43f0..d3100eab6b2f 100644 --- a/drivers/hwmon/w83792d.c +++ b/drivers/hwmon/w83792d.c | |||
@@ -56,7 +56,7 @@ module_param_array(force_subclients, short, NULL, 0); | |||
56 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " | 56 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " |
57 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); | 57 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); |
58 | 58 | ||
59 | static int init; | 59 | static bool init; |
60 | module_param(init, bool, 0); | 60 | module_param(init, bool, 0); |
61 | MODULE_PARM_DESC(init, "Set to one to force chip initialization"); | 61 | MODULE_PARM_DESC(init, "Set to one to force chip initialization"); |
62 | 62 | ||
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c index 3cc6fef22087..45ec7e7c3c27 100644 --- a/drivers/hwmon/w83793.c +++ b/drivers/hwmon/w83793.c | |||
@@ -61,7 +61,7 @@ module_param_array(force_subclients, short, NULL, 0); | |||
61 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " | 61 | MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " |
62 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); | 62 | "{bus, clientaddr, subclientaddr1, subclientaddr2}"); |
63 | 63 | ||
64 | static int reset; | 64 | static bool reset; |
65 | module_param(reset, bool, 0); | 65 | module_param(reset, bool, 0); |
66 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); | 66 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); |
67 | 67 | ||
diff --git a/drivers/hwmon/w83795.c b/drivers/hwmon/w83795.c index 3ee398d0e4c9..aa58b25565bc 100644 --- a/drivers/hwmon/w83795.c +++ b/drivers/hwmon/w83795.c | |||
@@ -42,7 +42,7 @@ static const unsigned short normal_i2c[] = { | |||
42 | }; | 42 | }; |
43 | 43 | ||
44 | 44 | ||
45 | static int reset; | 45 | static bool reset; |
46 | module_param(reset, bool, 0); | 46 | module_param(reset, bool, 0); |
47 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); | 47 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); |
48 | 48 | ||
diff --git a/drivers/hwmon/w83l786ng.c b/drivers/hwmon/w83l786ng.c index 0254e181893d..063bd9508d8a 100644 --- a/drivers/hwmon/w83l786ng.c +++ b/drivers/hwmon/w83l786ng.c | |||
@@ -39,7 +39,7 @@ static const unsigned short normal_i2c[] = { 0x2e, 0x2f, I2C_CLIENT_END }; | |||
39 | 39 | ||
40 | /* Insmod parameters */ | 40 | /* Insmod parameters */ |
41 | 41 | ||
42 | static int reset; | 42 | static bool reset; |
43 | module_param(reset, bool, 0); | 43 | module_param(reset, bool, 0); |
44 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); | 44 | MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); |
45 | 45 | ||