diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-07-14 16:38:34 -0400 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-07-14 16:38:34 -0400 |
commit | f6a7110520037ba786f17b53790c6eb8a3d4ef55 (patch) | |
tree | b26992317518c0aab93e0ec14ebaf990a73a941d /drivers/i2c/i2c-dev.c | |
parent | 954a99307f256f1badd751a2e128c09af235c317 (diff) |
i2c-dev: Delete empty detach_client callback
Implementing detach_client is optional, so there is no point in
an empty implementation.
Likewise, i2c driver IDs are optional, and we don't need one.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index e96d98696782..50df53640c78 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -548,19 +548,12 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap) | |||
548 | return 0; | 548 | return 0; |
549 | } | 549 | } |
550 | 550 | ||
551 | static int i2cdev_detach_client(struct i2c_client *client) | ||
552 | { | ||
553 | return 0; | ||
554 | } | ||
555 | |||
556 | static struct i2c_driver i2cdev_driver = { | 551 | static struct i2c_driver i2cdev_driver = { |
557 | .driver = { | 552 | .driver = { |
558 | .name = "dev_driver", | 553 | .name = "dev_driver", |
559 | }, | 554 | }, |
560 | .id = I2C_DRIVERID_I2CDEV, | ||
561 | .attach_adapter = i2cdev_attach_adapter, | 555 | .attach_adapter = i2cdev_attach_adapter, |
562 | .detach_adapter = i2cdev_detach_adapter, | 556 | .detach_adapter = i2cdev_detach_adapter, |
563 | .detach_client = i2cdev_detach_client, | ||
564 | }; | 557 | }; |
565 | 558 | ||
566 | /* ------------------------------------------------------------------------- */ | 559 | /* ------------------------------------------------------------------------- */ |