Skip to contentSkip to conversation

alter prototypes in fscpos.c

PATCH New Darren Jenkins\ 1 participant 1 message Feb 17, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alter prototypes in fscpos.c

G'day list,

from http://linuxicc.sourceforge.net/

ICC complains about : Storage Class is not First

@ line 92 & 93 of fscpos.c

This appears to be because the variables in the prototypes are called register which confuses ICC.
This patch converts it to match the actual functions variable name (reg).

drivers/hwmon/fscpos.c renamed from drivers/hwmon/fscpos.c.orig +2 -2
@@ -89,8 +89,8 @@ static int fscpos_attach_adapter(struct 
 static int fscpos_detect(struct i2c_adapter *adapter, int address, int kind);
 static int fscpos_detach_client(struct i2c_client *client);
 
-static int fscpos_read_value(struct i2c_client *client, u8 register);
-static int fscpos_write_value(struct i2c_client *client, u8 register, u8 value);
+static int fscpos_read_value(struct i2c_client *client, u8 reg);
+static int fscpos_write_value(struct i2c_client *client, u8 reg, u8 value);
 static struct fscpos_data *fscpos_update_device(struct device *dev);
 static void fscpos_init_client(struct i2c_client *client);
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors