aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-10-13 17:56:32 -0400
committerJean Delvare <khali@hyperion.delvare>2007-10-13 17:56:32 -0400
commit3be27d37c257fa5f99363f9c8e06e405cbad712e (patch)
tree261b7945e9b7bf6819ad72f50bfe3d33a3a388bf /drivers/media/video/usbvision
parente265cfa19c1220938de5f0291ed8d549a523de3c (diff)
i2c: Remove NOP i2c_algorithm.algo_control() methods
This removes NOP implementations of i2c_algorithm.algo_control. With this change, there are no implementations of this hook in the kernel.org tree ... that hook seems about ripe to remove. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/media/video/usbvision')
-rw-r--r--drivers/media/video/usbvision/usbvision-i2c.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/video/usbvision/usbvision-i2c.c b/drivers/media/video/usbvision/usbvision-i2c.c
index c66aef63916f..aabc42cae9c7 100644
--- a/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/drivers/media/video/usbvision/usbvision-i2c.c
@@ -183,11 +183,6 @@ usbvision_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
183 return num; 183 return num;
184} 184}
185 185
186static int algo_control(struct i2c_adapter *adapter, unsigned int cmd, unsigned long arg)
187{
188 return 0;
189}
190
191static u32 functionality(struct i2c_adapter *adap) 186static u32 functionality(struct i2c_adapter *adap)
192{ 187{
193 return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR; 188 return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR;
@@ -199,7 +194,6 @@ static u32 functionality(struct i2c_adapter *adap)
199static struct i2c_algorithm usbvision_algo = { 194static struct i2c_algorithm usbvision_algo = {
200 .master_xfer = usbvision_i2c_xfer, 195 .master_xfer = usbvision_i2c_xfer,
201 .smbus_xfer = NULL, 196 .smbus_xfer = NULL,
202 .algo_control = algo_control,
203 .functionality = functionality, 197 .functionality = functionality,
204}; 198};
205 199