aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
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/hwmon
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/hwmon')
-rw-r--r--drivers/hwmon/abituguru.c2
-rw-r--r--drivers/hwmon/abituguru3.c4
-rw-r--r--drivers/hwmon/acpi_power_meter.c2
-rw-r--r--drivers/hwmon/adm1021.c2
-rw-r--r--drivers/hwmon/ads7828.c4
-rw-r--r--drivers/hwmon/dme1737.c4
-rw-r--r--drivers/hwmon/it87.c4
-rw-r--r--drivers/hwmon/lm93.c4
-rw-r--r--drivers/hwmon/max1668.c2
-rw-r--r--drivers/hwmon/w83627hf.c2
-rw-r--r--drivers/hwmon/w83781d.c4
-rw-r--r--drivers/hwmon/w83791d.c4
-rw-r--r--drivers/hwmon/w83792d.c2
-rw-r--r--drivers/hwmon/w83793.c2
-rw-r--r--drivers/hwmon/w83795.c2
-rw-r--r--drivers/hwmon/w83l786ng.c2
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 */
148static int force; 148static bool force;
149module_param(force, bool, 0); 149module_param(force, bool, 0);
150MODULE_PARM_DESC(force, "Set to one to force detection."); 150MODULE_PARM_DESC(force, "Set to one to force detection.");
151static int bank1_types[ABIT_UGURU_MAX_BANK1_SENSORS] = { -1, -1, -1, -1, -1, 151static 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 */
606static int force; 606static bool force;
607module_param(force, bool, 0); 607module_param(force, bool, 0);
608MODULE_PARM_DESC(force, "Set to one to force detection."); 608MODULE_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 */
610static int verbose = 1; 610static bool verbose = 1;
611module_param(verbose, bool, 0644); 611module_param(verbose, bool, 0644);
612MODULE_PARM_DESC(verbose, "Enable/disable verbose error reporting"); 612MODULE_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
60static int cap_in_hardware; 60static int cap_in_hardware;
61static int force_cap_on; 61static bool force_cap_on;
62 62
63static int can_cap_in_hardware(void) 63static 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);
103static struct adm1021_data *adm1021_update_device(struct device *dev); 103static 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 */
106static int read_only; 106static bool read_only;
107 107
108 108
109static const struct i2c_device_id adm1021_id[] = { 109static 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 */
51static int se_input = 1; /* Default is SE, 0 == diff */ 51static bool se_input = 1; /* Default is SE, 0 == diff */
52static int int_vref = 1; /* Default is internal ref ON */ 52static bool int_vref = 1; /* Default is internal ref ON */
53static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */ 53static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */
54module_param(se_input, bool, S_IRUGO); 54module_param(se_input, bool, S_IRUGO);
55module_param(int_vref, bool, S_IRUGO); 55module_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 @@
45static struct platform_device *pdev; 45static struct platform_device *pdev;
46 46
47/* Module load parameters */ 47/* Module load parameters */
48static int force_start; 48static bool force_start;
49module_param(force_start, bool, 0); 49module_param(force_start, bool, 0);
50MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs"); 50MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs");
51 51
@@ -53,7 +53,7 @@ static unsigned short force_id;
53module_param(force_id, ushort, 0); 53module_param(force_id, ushort, 0);
54MODULE_PARM_DESC(force_id, "Override the detected device ID"); 54MODULE_PARM_DESC(force_id, "Override the detected device ID");
55 55
56static int probe_all_addr; 56static bool probe_all_addr;
57module_param(probe_all_addr, bool, 0); 57module_param(probe_all_addr, bool, 0);
58MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC " 58MODULE_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 */
149static int update_vbat; 149static bool update_vbat;
150 150
151/* Not all BIOSes properly configure the PWM registers */ 151/* Not all BIOSes properly configure the PWM registers */
152static int fix_pwm_polarity; 152static 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
154static int disable_block; 154static bool disable_block;
155module_param(disable_block, bool, 0); 155module_param(disable_block, bool, 0);
156MODULE_PARM_DESC(disable_block, 156MODULE_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
159static int init; 159static bool init;
160module_param(init, bool, 0); 160module_param(init, bool, 0);
161MODULE_PARM_DESC(init, "Set to non-zero to force chip initialization."); 161MODULE_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 */
62static int read_only; 62static bool read_only;
63module_param(read_only, bool, 0); 63module_param(read_only, bool, 0);
64MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); 64MODULE_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);
71MODULE_PARM_DESC(force_i2c, 71MODULE_PARM_DESC(force_i2c,
72 "Initialize the i2c address of the sensors"); 72 "Initialize the i2c address of the sensors");
73 73
74static int init = 1; 74static bool init = 1;
75module_param(init, bool, 0); 75module_param(init, bool, 0);
76MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); 76MODULE_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);
67MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 67MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
68 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 68 "{bus, clientaddr, subclientaddr1, subclientaddr2}");
69 69
70static int reset; 70static bool reset;
71module_param(reset, bool, 0); 71module_param(reset, bool, 0);
72MODULE_PARM_DESC(reset, "Set to one to reset chip on load"); 72MODULE_PARM_DESC(reset, "Set to one to reset chip on load");
73 73
74static int init = 1; 74static bool init = 1;
75module_param(init, bool, 0); 75module_param(init, bool, 0);
76MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); 76MODULE_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);
58MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 58MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
59 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 59 "{bus, clientaddr, subclientaddr1, subclientaddr2}");
60 60
61static int reset; 61static bool reset;
62module_param(reset, bool, 0); 62module_param(reset, bool, 0);
63MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset"); 63MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset");
64 64
65static int init; 65static bool init;
66module_param(init, bool, 0); 66module_param(init, bool, 0);
67MODULE_PARM_DESC(init, "Set to one to force extra software initialization"); 67MODULE_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);
56MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 56MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
57 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 57 "{bus, clientaddr, subclientaddr1, subclientaddr2}");
58 58
59static int init; 59static bool init;
60module_param(init, bool, 0); 60module_param(init, bool, 0);
61MODULE_PARM_DESC(init, "Set to one to force chip initialization"); 61MODULE_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);
61MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 61MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
62 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 62 "{bus, clientaddr, subclientaddr1, subclientaddr2}");
63 63
64static int reset; 64static bool reset;
65module_param(reset, bool, 0); 65module_param(reset, bool, 0);
66MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 66MODULE_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
45static int reset; 45static bool reset;
46module_param(reset, bool, 0); 46module_param(reset, bool, 0);
47MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 47MODULE_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
42static int reset; 42static bool reset;
43module_param(reset, bool, 0); 43module_param(reset, bool, 0);
44MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 44MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended");
45 45