diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-12-18 10:49:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:26 -0500 |
commit | d564baee2984098c73fd0e55bc5c8a890878ef3b (patch) | |
tree | 0f92136763fbe9f614c72f9e5581a2f091ebf118 /drivers/i2c/i2c-dev.c | |
parent | 04b4b8434a92b9ef127985113c0bd961957778b7 (diff) |
[PATCH] i2c: drop empty i2c_driver.command implementations
Given that implementing i2c_driver.command is optional, there is no
point in an empty implementation thereof.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Michael Geng <linux@MichaelGeng.de>
Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 ad6e04fc2c03..ed7eed388bae 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -464,12 +464,6 @@ static int i2cdev_detach_client(struct i2c_client *client) | |||
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
466 | 466 | ||
467 | static int i2cdev_command(struct i2c_client *client, unsigned int cmd, | ||
468 | void *arg) | ||
469 | { | ||
470 | return -1; | ||
471 | } | ||
472 | |||
473 | static struct i2c_driver i2cdev_driver = { | 467 | static struct i2c_driver i2cdev_driver = { |
474 | .driver = { | 468 | .driver = { |
475 | .name = "dev_driver", | 469 | .name = "dev_driver", |
@@ -478,7 +472,6 @@ static struct i2c_driver i2cdev_driver = { | |||
478 | .attach_adapter = i2cdev_attach_adapter, | 472 | .attach_adapter = i2cdev_attach_adapter, |
479 | .detach_adapter = i2cdev_detach_adapter, | 473 | .detach_adapter = i2cdev_detach_adapter, |
480 | .detach_client = i2cdev_detach_client, | 474 | .detach_client = i2cdev_detach_client, |
481 | .command = i2cdev_command, | ||
482 | }; | 475 | }; |
483 | 476 | ||
484 | static struct i2c_client i2cdev_client_template = { | 477 | static struct i2c_client i2cdev_client_template = { |