Skip to content

Commit

Permalink
[PATCH] i2c: Drop meaningless use of I2C_DF_NOTIFY in i2c_client stru…
Browse files Browse the repository at this point in the history
…ctures

I2C_DF_NOTIFY is an i2c_driver flag, using it as an i2c_client flag
doesn't make any sense.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Acked-by: Randy Vinson <rvinson@mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent 6c129be commit 00bffb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion drivers/i2c/chips/ds1374.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ static int ds1374_probe(struct i2c_adapter *adap, int addr, int kind)

memset(client, 0, sizeof(struct i2c_client));
strncpy(client->name, DS1374_DRV_NAME, I2C_NAME_SIZE);
client->flags = I2C_DF_NOTIFY;
client->addr = addr;
client->adapter = adap;
client->driver = &ds1374_driver;
Expand Down
1 change: 0 additions & 1 deletion drivers/i2c/chips/m41t00.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ m41t00_probe(struct i2c_adapter *adap, int addr, int kind)

memset(client, 0, sizeof(struct i2c_client));
strncpy(client->name, M41T00_DRV_NAME, I2C_NAME_SIZE);
client->flags = I2C_DF_NOTIFY;
client->addr = addr;
client->adapter = adap;
client->driver = &m41t00_driver;
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/chips/rtc8564.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int rtc8564_attach(struct i2c_adapter *adap, int addr, int kind)

strlcpy(new_client->name, "RTC8564", I2C_NAME_SIZE);
i2c_set_clientdata(new_client, d);
new_client->flags = I2C_CLIENT_ALLOW_USE | I2C_DF_NOTIFY;
new_client->flags = I2C_CLIENT_ALLOW_USE;
new_client->addr = addr;
new_client->adapter = adap;
new_client->driver = &rtc8564_driver;
Expand Down

0 comments on commit 00bffb6

Please sign in to comment.