[PATCH] i2c: Drop meaningless use of I2C_DF_NOTIFY in i2c_client structures
authorJean Delvare <khali@linux-fr.org>
Fri, 7 Oct 2005 22:19:52 +0000 (00:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:10 +0000 (14:02 -0700)
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>
drivers/i2c/chips/ds1374.c
drivers/i2c/chips/m41t00.c
drivers/i2c/chips/rtc8564.c

index 0936327a946db0a8c5ca673f4a42ef8eae3dc598..ec640e9f085ad1366597ad5d951025b4b3d053d1 100644 (file)
@@ -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;
index 3f14528a52a9248cdc1d44a0968fe4d54956d547..554f7ba616275f8823713042d26034b04c79f854 100644 (file)
@@ -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;
index 0b5385c892b1ae827fcb9d3345a77787fe56f5cb..dd9d42d7b6e75fa58f43a083bd73822b480b3949 100644 (file)
@@ -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;