Commit 8cc8f43b authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman

[PATCH] I2C: Do not init global variables to 0

This trivial patch enforces the rule that global variables should not be
explicitely initialized to 0 for all i2c chip drivers.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 510a73ba
......@@ -148,7 +148,7 @@ static struct i2c_driver adm1021_driver = {
.detach_client = adm1021_detach_client,
};
static int adm1021_id = 0;
static int adm1021_id;
#define show(value) \
static ssize_t show_##value(struct device *dev, char *buf) \
......
......@@ -153,7 +153,7 @@ struct adm1025_data {
* Internal variables
*/
static int adm1025_id = 0;
static int adm1025_id;
/*
* Sysfs stuff
......
......@@ -96,7 +96,7 @@ static struct i2c_driver ds1621_driver = {
.detach_client = ds1621_detach_client,
};
static int ds1621_id = 0;
static int ds1621_id;
/* All registers are word-sized, except for the configuration register.
DS1621 uses a high-byte first convention, which is exactly opposite to
......
......@@ -86,7 +86,7 @@ static struct i2c_driver eeprom_driver = {
.detach_client = eeprom_detach_client,
};
static int eeprom_id = 0;
static int eeprom_id;
static void eeprom_update_client(struct i2c_client *client, u8 slice)
{
......
......@@ -156,7 +156,7 @@ struct fscher_data {
* Internal variables
*/
static int fscher_id = 0;
static int fscher_id;
/*
* Sysfs stuff
......
......@@ -164,7 +164,7 @@ static struct i2c_driver gl518_driver = {
* Internal variables
*/
static int gl518_id = 0;
static int gl518_id;
/*
* Sysfs stuff
......
......@@ -226,7 +226,7 @@ static struct i2c_driver it87_driver = {
.detach_client = it87_detach_client,
};
static int it87_id = 0;
static int it87_id;
static ssize_t show_in(struct device *dev, char *buf, int nr)
{
......
......@@ -74,7 +74,7 @@ static struct i2c_driver lm75_driver = {
.detach_client = lm75_detach_client,
};
static int lm75_id = 0;
static int lm75_id;
#define show(value) \
static ssize_t show_##value(struct device *dev, char *buf) \
......
......@@ -83,7 +83,7 @@ static struct i2c_driver lm77_driver = {
.detach_client = lm77_detach_client,
};
static int lm77_id = 0;
static int lm77_id;
/* straight from the datasheet */
#define LM77_TEMP_MIN (-55000)
......
......@@ -145,7 +145,7 @@ static int lm80_write_value(struct i2c_client *client, u8 reg, u8 value);
* Internal variables
*/
static int lm80_id = 0;
static int lm80_id;
/*
* Driver data (common to all clients)
......
......@@ -152,7 +152,7 @@ struct lm83_data {
* Internal variables
*/
static int lm83_id = 0;
static int lm83_id;
/*
* Sysfs stuff
......
......@@ -405,7 +405,7 @@ static struct i2c_driver lm85_driver = {
};
/* Unique ID assigned to each LM85 detected */
static int lm85_id = 0;
static int lm85_id;
/* 4 Fans */
......
......@@ -187,7 +187,7 @@ struct lm90_data {
* Internal variables
*/
static int lm90_id = 0;
static int lm90_id;
/*
* Sysfs stuff
......
......@@ -120,7 +120,7 @@ struct max1619_data {
* Internal variables
*/
static int max1619_id = 0;
static int max1619_id;
/*
* Sysfs stuff
......
......@@ -77,7 +77,7 @@ static struct i2c_driver pcf8574_driver = {
.detach_client = pcf8574_detach_client,
};
static int pcf8574_id = 0;
static int pcf8574_id;
/* following are the sysfs callback functions */
static ssize_t show_read(struct device *dev, char *buf)
......
......@@ -99,7 +99,7 @@ static struct i2c_driver pcf8591_driver = {
.detach_client = pcf8591_detach_client,
};
static int pcf8591_id = 0;
static int pcf8591_id;
/* following are the sysfs callback functions */
#define show_in_channel(channel) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment