diff --git a/kernel/chips/adm1026.c b/kernel/chips/adm1026.c index a5077af3..27b38e4b 100644 --- a/kernel/chips/adm1026.c +++ b/kernel/chips/adm1026.c @@ -603,14 +603,14 @@ static ctl_table adm1026_common[] = { * the module is loaded * a new adapter is loaded */ -int adm1026_attach_adapter(struct i2c_adapter *adapter) +static int adm1026_attach_adapter(struct i2c_adapter *adapter) { return i2c_detect(adapter, &addr_data, adm1026_detect); } /* This function is called by i2c_detect */ -int adm1026_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int adm1026_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; int company, verstep ; @@ -769,7 +769,7 @@ int adm1026_detect(struct i2c_adapter *adapter, int address, return err; } -int adm1026_detach_client(struct i2c_client *client) +static int adm1026_detach_client(struct i2c_client *client) { int err; int id ; @@ -788,7 +788,7 @@ int adm1026_detach_client(struct i2c_client *client) return 0; } -int adm1026_read_value(struct i2c_client *client, u8 reg) +static int adm1026_read_value(struct i2c_client *client, u8 reg) { int res; @@ -803,7 +803,7 @@ int adm1026_read_value(struct i2c_client *client, u8 reg) return res ; } -int adm1026_write_value(struct i2c_client *client, u8 reg, int value) +static int adm1026_write_value(struct i2c_client *client, u8 reg, int value) { int res ; @@ -819,7 +819,7 @@ int adm1026_write_value(struct i2c_client *client, u8 reg, int value) } /* Called when we have found a new ADM1026. */ -void adm1026_init_client(struct i2c_client *client) +static void adm1026_init_client(struct i2c_client *client) { int value ; int i; @@ -918,7 +918,7 @@ void adm1026_init_client(struct i2c_client *client) } -void adm1026_print_gpio(struct i2c_client *client) +static void adm1026_print_gpio(struct i2c_client *client) { struct adm1026_data *data = client->data; int i ; @@ -952,7 +952,7 @@ void adm1026_print_gpio(struct i2c_client *client) } } -void adm1026_fixup_gpio(struct i2c_client *client) +static void adm1026_fixup_gpio(struct i2c_client *client) { struct adm1026_data *data = client->data; int i ; @@ -1027,7 +1027,7 @@ void adm1026_fixup_gpio(struct i2c_client *client) adm1026_print_gpio(client); } -void adm1026_update_client(struct i2c_client *client) +static void adm1026_update_client(struct i2c_client *client) { struct adm1026_data *data = client->data; int i; diff --git a/kernel/chips/ds1621.c b/kernel/chips/ds1621.c index d67b4cca..9586d044 100644 --- a/kernel/chips/ds1621.c +++ b/kernel/chips/ds1621.c @@ -159,8 +159,8 @@ static int ds1621_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int ds1621_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int ds1621_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i, conf, temp; struct i2c_client *new_client; diff --git a/kernel/chips/eeprom.c b/kernel/chips/eeprom.c index 62ae43a1..15f00940 100644 --- a/kernel/chips/eeprom.c +++ b/kernel/chips/eeprom.c @@ -157,8 +157,8 @@ static int eeprom_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int eeprom_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int eeprom_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; diff --git a/kernel/chips/fscpos.c b/kernel/chips/fscpos.c index 8219be86..55d20074 100644 --- a/kernel/chips/fscpos.c +++ b/kernel/chips/fscpos.c @@ -223,8 +223,8 @@ static int fscpos_attach_adapter(struct i2c_adapter *adapter) return i2c_detect(adapter, &addr_data, fscpos_detect); } -int fscpos_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int fscpos_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; diff --git a/kernel/chips/lm75.c b/kernel/chips/lm75.c index 773e6ce4..1c8f539d 100644 --- a/kernel/chips/lm75.c +++ b/kernel/chips/lm75.c @@ -100,8 +100,8 @@ static int lm75_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int lm75_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int lm75_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; diff --git a/kernel/chips/lm78.c b/kernel/chips/lm78.c index 11e04d4a..0b08e973 100644 --- a/kernel/chips/lm78.c +++ b/kernel/chips/lm78.c @@ -256,8 +256,8 @@ static int lm78_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int lm78_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int lm78_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; diff --git a/kernel/chips/lm80.c b/kernel/chips/lm80.c index fbfae660..7584306b 100644 --- a/kernel/chips/lm80.c +++ b/kernel/chips/lm80.c @@ -232,8 +232,8 @@ static int lm80_attach_adapter(struct i2c_adapter *adapter) return i2c_detect(adapter, &addr_data, lm80_detect); } -int lm80_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int lm80_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i, cur; struct i2c_client *new_client; diff --git a/kernel/chips/lm85.c b/kernel/chips/lm85.c index fcc12bb5..15ec9ac9 100644 --- a/kernel/chips/lm85.c +++ b/kernel/chips/lm85.c @@ -693,14 +693,14 @@ static ctl_table emc6d100_specific[] = { * lm85_driver is inserted (when this module is loaded), for each available adapter * when a new adapter is inserted (and lm85_driver is still present) */ -int lm85_attach_adapter(struct i2c_adapter *adapter) +static int lm85_attach_adapter(struct i2c_adapter *adapter) { return i2c_detect(adapter, &addr_data, lm85_detect); } /* This function is called by i2c_detect */ -int lm85_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int lm85_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; int company, verstep ; @@ -921,7 +921,7 @@ int lm85_detect(struct i2c_adapter *adapter, int address, return err; } -int lm85_detach_client(struct i2c_client *client) +static int lm85_detach_client(struct i2c_client *client) { int err; int id ; @@ -940,7 +940,7 @@ int lm85_detach_client(struct i2c_client *client) return 0; } -int lm85_read_value(struct i2c_client *client, u16 reg) +static int lm85_read_value(struct i2c_client *client, u16 reg) { int res; @@ -974,7 +974,7 @@ int lm85_read_value(struct i2c_client *client, u16 reg) return res ; } -int lm85_write_value(struct i2c_client *client, u16 reg, int value) +static int lm85_write_value(struct i2c_client *client, u16 reg, int value) { int res ; @@ -1007,7 +1007,7 @@ int lm85_write_value(struct i2c_client *client, u16 reg, int value) } /* Called when we have found a new LM85. */ -void lm85_init_client(struct i2c_client *client) +static void lm85_init_client(struct i2c_client *client) { int value; struct lm85_data *data = client->data; @@ -1091,7 +1091,7 @@ void lm85_init_client(struct i2c_client *client) } -void lm85_update_client(struct i2c_client *client) +static void lm85_update_client(struct i2c_client *client) { struct lm85_data *data = client->data; int i; diff --git a/kernel/chips/pcf8574.c b/kernel/chips/pcf8574.c index 55a6bcca..7026065b 100644 --- a/kernel/chips/pcf8574.c +++ b/kernel/chips/pcf8574.c @@ -120,8 +120,8 @@ static int pcf8574_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int pcf8574_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int pcf8574_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client; diff --git a/kernel/chips/pcf8591.c b/kernel/chips/pcf8591.c index 31895872..6f6de4c9 100644 --- a/kernel/chips/pcf8591.c +++ b/kernel/chips/pcf8591.c @@ -155,8 +155,8 @@ static int pcf8591_attach_adapter(struct i2c_adapter *adapter) } /* This function is called by i2c_detect */ -int pcf8591_detect(struct i2c_adapter *adapter, int address, - unsigned short flags, int kind) +static int pcf8591_detect(struct i2c_adapter *adapter, int address, + unsigned short flags, int kind) { int i; struct i2c_client *new_client;