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/video/matrox | |
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/video/matrox')
-rw-r--r-- | drivers/video/matrox/matroxfb_maven.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/video/matrox/matroxfb_maven.c b/drivers/video/matrox/matroxfb_maven.c index 255875378a3f..a1f2c5e8fc88 100644 --- a/drivers/video/matrox/matroxfb_maven.c +++ b/drivers/video/matrox/matroxfb_maven.c | |||
@@ -1288,10 +1288,6 @@ static int maven_detach_client(struct i2c_client* client) { | |||
1288 | return 0; | 1288 | return 0; |
1289 | } | 1289 | } |
1290 | 1290 | ||
1291 | static int maven_command(struct i2c_client* client, unsigned int cmd, void* arg) { | ||
1292 | return -ENOIOCTLCMD; /* or -EINVAL, depends on who will call this */ | ||
1293 | } | ||
1294 | |||
1295 | static struct i2c_driver maven_driver={ | 1291 | static struct i2c_driver maven_driver={ |
1296 | .driver = { | 1292 | .driver = { |
1297 | .name = "maven", | 1293 | .name = "maven", |
@@ -1299,7 +1295,6 @@ static struct i2c_driver maven_driver={ | |||
1299 | .id = I2C_DRIVERID_MGATVO, | 1295 | .id = I2C_DRIVERID_MGATVO, |
1300 | .attach_adapter = maven_attach_adapter, | 1296 | .attach_adapter = maven_attach_adapter, |
1301 | .detach_client = maven_detach_client, | 1297 | .detach_client = maven_detach_client, |
1302 | .command = maven_command, | ||
1303 | }; | 1298 | }; |
1304 | 1299 | ||
1305 | /* ************************** */ | 1300 | /* ************************** */ |