Skip to content

Commit

Permalink
[media] lirc_zilog: Remove useless struct i2c_driver.command function
Browse files Browse the repository at this point in the history
The ir_command() function is a do-nothing stub; remove it.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 8090232 commit 6830661
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/staging/lirc/lirc_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,6 @@ static struct lirc_driver lirc_template = {

static int ir_remove(struct i2c_client *client);
static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id);
static int ir_command(struct i2c_client *client, unsigned int cmd, void *arg);

#define ID_FLAG_TX 0x01
#define ID_FLAG_HDPVR 0x02
Expand All @@ -1143,7 +1142,6 @@ static struct i2c_driver driver = {
},
.probe = ir_probe,
.remove = ir_remove,
.command = ir_command,
.id_table = ir_transceiver_id,
};

Expand Down Expand Up @@ -1410,12 +1408,6 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
return ret;
}

static int ir_command(struct i2c_client *client, unsigned int cmd, void *arg)
{
/* nothing */
return 0;
}

static int __init zilog_init(void)
{
int ret;
Expand Down

0 comments on commit 6830661

Please sign in to comment.