summaryrefslogtreecommitdiff
path: root/drivers/hwmon/it87.c
diff options
context:
space:
mode:
authorDarren Jenkins <darrenrjenkins@gmail.com>2006-02-27 23:14:58 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-23 14:21:55 -0800
commitf6c27fc17c5e575c5471fb344bdbd5f5f6072136 (patch)
tree0b6b2e884ef47278471e450f5a346ada5c451f00 /drivers/hwmon/it87.c
parent279a022d4a12598b58aee47a73faf2d8cc72c91f (diff)
downloadlinux-3.10-f6c27fc17c5e575c5471fb344bdbd5f5f6072136.tar.gz
linux-3.10-f6c27fc17c5e575c5471fb344bdbd5f5f6072136.tar.bz2
linux-3.10-f6c27fc17c5e575c5471fb344bdbd5f5f6072136.zip
[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/hwmon/it87.c')
-rw-r--r--drivers/hwmon/it87.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index 122ff9cd75c..06df92b3ee4 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);
static int it87_detect(struct i2c_adapter *adapter, int address, int kind);
static int it87_detach_client(struct i2c_client *client);
-static int it87_read_value(struct i2c_client *client, u8 register);
-static int it87_write_value(struct i2c_client *client, u8 register,
- u8 value);
+static int it87_read_value(struct i2c_client *client, u8 reg);
+static int it87_write_value(struct i2c_client *client, u8 reg, u8 value);
static struct it87_data *it87_update_device(struct device *dev);
static int it87_check_pwm(struct i2c_client *client);
static void it87_init_client(struct i2c_client *client, struct it87_data *data);