Skip to content

Commit

Permalink
cx23885: Drop empty i2c algorithm control callback
Browse files Browse the repository at this point in the history
i2c_algorithm.algo_control is about to be removed.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 13, 2007
1 parent 3be27d3 commit cdeec3c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/media/video/cx23885/cx23885-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,20 +272,13 @@ void cx23885_call_i2c_clients(struct cx23885_i2c *bus,
i2c_clients_command(&bus->i2c_adap, cmd, arg);
}

static int cx23885_algo_control(struct i2c_adapter *adap,
unsigned int cmd, unsigned long arg)
{
return 0;
}

static u32 cx23885_functionality(struct i2c_adapter *adap)
{
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;
}

static struct i2c_algorithm cx23885_i2c_algo_template = {
.master_xfer = i2c_xfer,
.algo_control = cx23885_algo_control,
.functionality = cx23885_functionality,
};

Expand Down

0 comments on commit cdeec3c

Please sign in to comment.