diff options
author | Darren Jenkins <darrenrjenkins@gmail.com> | 2006-02-27 17:14:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-23 17:21:55 -0500 |
commit | f6c27fc17c5e575c5471fb344bdbd5f5f6072136 (patch) | |
tree | 0b6b2e884ef47278471e450f5a346ada5c451f00 /drivers | |
parent | 279a022d4a12598b58aee47a73faf2d8cc72c91f (diff) |
[PATCH] I2C: hwmon: Rename register parameters
"register" is a reserved keyword so using it as a parameter name
can confuse some compilers, most notably ICC.
The patch below just renames all occurences to reg which fits the actual
function declarations.
Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/adm1026.c | 5 | ||||
-rw-r--r-- | drivers/hwmon/fscpos.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/it87.c | 5 | ||||
-rw-r--r-- | drivers/hwmon/lm78.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/lm85.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/sis5595.c | 4 | ||||
-rw-r--r-- | drivers/hwmon/w83627hf.c | 5 | ||||
-rw-r--r-- | drivers/hwmon/w83781d.c | 5 |
8 files changed, 16 insertions, 20 deletions
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c index 8646ec1e9667..6d4f8b8d358e 100644 --- a/drivers/hwmon/adm1026.c +++ b/drivers/hwmon/adm1026.c | |||
@@ -299,9 +299,8 @@ static int adm1026_attach_adapter(struct i2c_adapter *adapter); | |||
299 | static int adm1026_detect(struct i2c_adapter *adapter, int address, | 299 | static int adm1026_detect(struct i2c_adapter *adapter, int address, |
300 | int kind); | 300 | int kind); |
301 | static int adm1026_detach_client(struct i2c_client *client); | 301 | static int adm1026_detach_client(struct i2c_client *client); |
302 | static int adm1026_read_value(struct i2c_client *client, u8 register); | 302 | static int adm1026_read_value(struct i2c_client *client, u8 reg); |
303 | static int adm1026_write_value(struct i2c_client *client, u8 register, | 303 | static int adm1026_write_value(struct i2c_client *client, u8 reg, int value); |
304 | int value); | ||
305 | static void adm1026_print_gpio(struct i2c_client *client); | 304 | static void adm1026_print_gpio(struct i2c_client *client); |
306 | static void adm1026_fixup_gpio(struct i2c_client *client); | 305 | static void adm1026_fixup_gpio(struct i2c_client *client); |
307 | static struct adm1026_data *adm1026_update_device(struct device *dev); | 306 | static struct adm1026_data *adm1026_update_device(struct device *dev); |
diff --git a/drivers/hwmon/fscpos.c b/drivers/hwmon/fscpos.c index 758978e1bfe0..6dc4846b9eeb 100644 --- a/drivers/hwmon/fscpos.c +++ b/drivers/hwmon/fscpos.c | |||
@@ -90,8 +90,8 @@ static int fscpos_attach_adapter(struct i2c_adapter *adapter); | |||
90 | static int fscpos_detect(struct i2c_adapter *adapter, int address, int kind); | 90 | static int fscpos_detect(struct i2c_adapter *adapter, int address, int kind); |
91 | static int fscpos_detach_client(struct i2c_client *client); | 91 | static int fscpos_detach_client(struct i2c_client *client); |
92 | 92 | ||
93 | static int fscpos_read_value(struct i2c_client *client, u8 register); | 93 | static int fscpos_read_value(struct i2c_client *client, u8 reg); |
94 | static int fscpos_write_value(struct i2c_client *client, u8 register, u8 value); | 94 | static int fscpos_write_value(struct i2c_client *client, u8 reg, u8 value); |
95 | static struct fscpos_data *fscpos_update_device(struct device *dev); | 95 | static struct fscpos_data *fscpos_update_device(struct device *dev); |
96 | static void fscpos_init_client(struct i2c_client *client); | 96 | static void fscpos_init_client(struct i2c_client *client); |
97 | 97 | ||
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 122ff9cd75cb..06df92b3ee49 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -225,9 +225,8 @@ static int it87_isa_attach_adapter(struct i2c_adapter *adapter); | |||
225 | static int it87_detect(struct i2c_adapter *adapter, int address, int kind); | 225 | static int it87_detect(struct i2c_adapter *adapter, int address, int kind); |
226 | static int it87_detach_client(struct i2c_client *client); | 226 | static int it87_detach_client(struct i2c_client *client); |
227 | 227 | ||
228 | static int it87_read_value(struct i2c_client *client, u8 register); | 228 | static int it87_read_value(struct i2c_client *client, u8 reg); |
229 | static int it87_write_value(struct i2c_client *client, u8 register, | 229 | static int it87_write_value(struct i2c_client *client, u8 reg, u8 value); |
230 | u8 value); | ||
231 | static struct it87_data *it87_update_device(struct device *dev); | 230 | static struct it87_data *it87_update_device(struct device *dev); |
232 | static int it87_check_pwm(struct i2c_client *client); | 231 | static int it87_check_pwm(struct i2c_client *client); |
233 | static void it87_init_client(struct i2c_client *client, struct it87_data *data); | 232 | static void it87_init_client(struct i2c_client *client, struct it87_data *data); |
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 36d1192ebe2a..94be3d797e61 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -158,8 +158,8 @@ static int lm78_isa_attach_adapter(struct i2c_adapter *adapter); | |||
158 | static int lm78_detect(struct i2c_adapter *adapter, int address, int kind); | 158 | static int lm78_detect(struct i2c_adapter *adapter, int address, int kind); |
159 | static int lm78_detach_client(struct i2c_client *client); | 159 | static int lm78_detach_client(struct i2c_client *client); |
160 | 160 | ||
161 | static int lm78_read_value(struct i2c_client *client, u8 register); | 161 | static int lm78_read_value(struct i2c_client *client, u8 reg); |
162 | static int lm78_write_value(struct i2c_client *client, u8 register, u8 value); | 162 | static int lm78_write_value(struct i2c_client *client, u8 reg, u8 value); |
163 | static struct lm78_data *lm78_update_device(struct device *dev); | 163 | static struct lm78_data *lm78_update_device(struct device *dev); |
164 | static void lm78_init_client(struct i2c_client *client); | 164 | static void lm78_init_client(struct i2c_client *client); |
165 | 165 | ||
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c index 095e58ac2ceb..342e9663119d 100644 --- a/drivers/hwmon/lm85.c +++ b/drivers/hwmon/lm85.c | |||
@@ -374,8 +374,8 @@ static int lm85_detect(struct i2c_adapter *adapter, int address, | |||
374 | int kind); | 374 | int kind); |
375 | static int lm85_detach_client(struct i2c_client *client); | 375 | static int lm85_detach_client(struct i2c_client *client); |
376 | 376 | ||
377 | static int lm85_read_value(struct i2c_client *client, u8 register); | 377 | static int lm85_read_value(struct i2c_client *client, u8 reg); |
378 | static int lm85_write_value(struct i2c_client *client, u8 register, int value); | 378 | static int lm85_write_value(struct i2c_client *client, u8 reg, int value); |
379 | static struct lm85_data *lm85_update_device(struct device *dev); | 379 | static struct lm85_data *lm85_update_device(struct device *dev); |
380 | static void lm85_init_client(struct i2c_client *client); | 380 | static void lm85_init_client(struct i2c_client *client); |
381 | 381 | ||
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 4db0dd871eee..6f3fda73f70c 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -193,8 +193,8 @@ static struct pci_dev *s_bridge; /* pointer to the (only) sis5595 */ | |||
193 | static int sis5595_detect(struct i2c_adapter *adapter); | 193 | static int sis5595_detect(struct i2c_adapter *adapter); |
194 | static int sis5595_detach_client(struct i2c_client *client); | 194 | static int sis5595_detach_client(struct i2c_client *client); |
195 | 195 | ||
196 | static int sis5595_read_value(struct i2c_client *client, u8 register); | 196 | static int sis5595_read_value(struct i2c_client *client, u8 reg); |
197 | static int sis5595_write_value(struct i2c_client *client, u8 register, u8 value); | 197 | static int sis5595_write_value(struct i2c_client *client, u8 reg, u8 value); |
198 | static struct sis5595_data *sis5595_update_device(struct device *dev); | 198 | static struct sis5595_data *sis5595_update_device(struct device *dev); |
199 | static void sis5595_init_client(struct i2c_client *client); | 199 | static void sis5595_init_client(struct i2c_client *client); |
200 | 200 | ||
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index 992e34402705..71fb7f1af8f5 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c | |||
@@ -332,9 +332,8 @@ struct w83627hf_data { | |||
332 | static int w83627hf_detect(struct i2c_adapter *adapter); | 332 | static int w83627hf_detect(struct i2c_adapter *adapter); |
333 | static int w83627hf_detach_client(struct i2c_client *client); | 333 | static int w83627hf_detach_client(struct i2c_client *client); |
334 | 334 | ||
335 | static int w83627hf_read_value(struct i2c_client *client, u16 register); | 335 | static int w83627hf_read_value(struct i2c_client *client, u16 reg); |
336 | static int w83627hf_write_value(struct i2c_client *client, u16 register, | 336 | static int w83627hf_write_value(struct i2c_client *client, u16 reg, u16 value); |
337 | u16 value); | ||
338 | static struct w83627hf_data *w83627hf_update_device(struct device *dev); | 337 | static struct w83627hf_data *w83627hf_update_device(struct device *dev); |
339 | static void w83627hf_init_client(struct i2c_client *client); | 338 | static void w83627hf_init_client(struct i2c_client *client); |
340 | 339 | ||
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index 8b17132f6b94..e4c700356c44 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -272,9 +272,8 @@ static int w83781d_isa_attach_adapter(struct i2c_adapter *adapter); | |||
272 | static int w83781d_detect(struct i2c_adapter *adapter, int address, int kind); | 272 | static int w83781d_detect(struct i2c_adapter *adapter, int address, int kind); |
273 | static int w83781d_detach_client(struct i2c_client *client); | 273 | static int w83781d_detach_client(struct i2c_client *client); |
274 | 274 | ||
275 | static int w83781d_read_value(struct i2c_client *client, u16 register); | 275 | static int w83781d_read_value(struct i2c_client *client, u16 reg); |
276 | static int w83781d_write_value(struct i2c_client *client, u16 register, | 276 | static int w83781d_write_value(struct i2c_client *client, u16 reg, u16 value); |
277 | u16 value); | ||
278 | static struct w83781d_data *w83781d_update_device(struct device *dev); | 277 | static struct w83781d_data *w83781d_update_device(struct device *dev); |
279 | static void w83781d_init_client(struct i2c_client *client); | 278 | static void w83781d_init_client(struct i2c_client *client); |
280 | 279 | ||