diff options
author | David Brownell <david-b@pacbell.net> | 2007-10-13 17:56:32 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-10-13 17:56:32 -0400 |
commit | 3be27d37c257fa5f99363f9c8e06e405cbad712e (patch) | |
tree | 261b7945e9b7bf6819ad72f50bfe3d33a3a388bf /drivers/media/video | |
parent | e265cfa19c1220938de5f0291ed8d549a523de3c (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')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-i2c.c | 7 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 10 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | 7 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-i2c.c | 7 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-i2c.c | 6 | ||||
-rw-r--r-- | drivers/media/video/w9968cf.c | 11 |
6 files changed, 0 insertions, 48 deletions
diff --git a/drivers/media/video/bt8xx/bttv-i2c.c b/drivers/media/video/bt8xx/bttv-i2c.c index 844f1762c45a..4d5b8035e466 100644 --- a/drivers/media/video/bt8xx/bttv-i2c.c +++ b/drivers/media/video/bt8xx/bttv-i2c.c | |||
@@ -124,12 +124,6 @@ static struct i2c_adapter bttv_i2c_adap_sw_template = { | |||
124 | /* ----------------------------------------------------------------------- */ | 124 | /* ----------------------------------------------------------------------- */ |
125 | /* I2C functions - hardware i2c */ | 125 | /* I2C functions - hardware i2c */ |
126 | 126 | ||
127 | static int algo_control(struct i2c_adapter *adapter, | ||
128 | unsigned int cmd, unsigned long arg) | ||
129 | { | ||
130 | return 0; | ||
131 | } | ||
132 | |||
133 | static u32 functionality(struct i2c_adapter *adap) | 127 | static u32 functionality(struct i2c_adapter *adap) |
134 | { | 128 | { |
135 | return I2C_FUNC_SMBUS_EMUL; | 129 | return I2C_FUNC_SMBUS_EMUL; |
@@ -278,7 +272,6 @@ static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int | |||
278 | 272 | ||
279 | static struct i2c_algorithm bttv_algo = { | 273 | static struct i2c_algorithm bttv_algo = { |
280 | .master_xfer = bttv_i2c_xfer, | 274 | .master_xfer = bttv_i2c_xfer, |
281 | .algo_control = algo_control, | ||
282 | .functionality = functionality, | 275 | .functionality = functionality, |
283 | }; | 276 | }; |
284 | 277 | ||
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index 54ccc6e1f92e..997d067e32e0 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -383,15 +383,6 @@ static int em28xx_i2c_eeprom(struct em28xx *dev, unsigned char *eedata, int len) | |||
383 | /* ----------------------------------------------------------- */ | 383 | /* ----------------------------------------------------------- */ |
384 | 384 | ||
385 | /* | 385 | /* |
386 | * algo_control() | ||
387 | */ | ||
388 | static int algo_control(struct i2c_adapter *adapter, | ||
389 | unsigned int cmd, unsigned long arg) | ||
390 | { | ||
391 | return 0; | ||
392 | } | ||
393 | |||
394 | /* | ||
395 | * functionality() | 386 | * functionality() |
396 | */ | 387 | */ |
397 | static u32 functionality(struct i2c_adapter *adap) | 388 | static u32 functionality(struct i2c_adapter *adap) |
@@ -475,7 +466,6 @@ static int attach_inform(struct i2c_client *client) | |||
475 | 466 | ||
476 | static struct i2c_algorithm em28xx_algo = { | 467 | static struct i2c_algorithm em28xx_algo = { |
477 | .master_xfer = em28xx_i2c_xfer, | 468 | .master_xfer = em28xx_i2c_xfer, |
478 | .algo_control = algo_control, | ||
479 | .functionality = functionality, | 469 | .functionality = functionality, |
480 | }; | 470 | }; |
481 | 471 | ||
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c index 898c9d2e4cdf..c817c864e6a0 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | |||
@@ -520,12 +520,6 @@ static int pvr2_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
520 | return ret; | 520 | return ret; |
521 | } | 521 | } |
522 | 522 | ||
523 | static int pvr2_i2c_control(struct i2c_adapter *adapter, | ||
524 | unsigned int cmd, unsigned long arg) | ||
525 | { | ||
526 | return 0; | ||
527 | } | ||
528 | |||
529 | static u32 pvr2_i2c_functionality(struct i2c_adapter *adap) | 523 | static u32 pvr2_i2c_functionality(struct i2c_adapter *adap) |
530 | { | 524 | { |
531 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; | 525 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; |
@@ -942,7 +936,6 @@ static int pvr2_i2c_detach_inform(struct i2c_client *client) | |||
942 | 936 | ||
943 | static struct i2c_algorithm pvr2_i2c_algo_template = { | 937 | static struct i2c_algorithm pvr2_i2c_algo_template = { |
944 | .master_xfer = pvr2_i2c_xfer, | 938 | .master_xfer = pvr2_i2c_xfer, |
945 | .algo_control = pvr2_i2c_control, | ||
946 | .functionality = pvr2_i2c_functionality, | 939 | .functionality = pvr2_i2c_functionality, |
947 | }; | 940 | }; |
948 | 941 | ||
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c index cc87f5855a21..6deaad1a5480 100644 --- a/drivers/media/video/saa7134/saa7134-i2c.c +++ b/drivers/media/video/saa7134/saa7134-i2c.c | |||
@@ -314,12 +314,6 @@ static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
314 | 314 | ||
315 | /* ----------------------------------------------------------- */ | 315 | /* ----------------------------------------------------------- */ |
316 | 316 | ||
317 | static int algo_control(struct i2c_adapter *adapter, | ||
318 | unsigned int cmd, unsigned long arg) | ||
319 | { | ||
320 | return 0; | ||
321 | } | ||
322 | |||
323 | static u32 functionality(struct i2c_adapter *adap) | 317 | static u32 functionality(struct i2c_adapter *adap) |
324 | { | 318 | { |
325 | return I2C_FUNC_SMBUS_EMUL; | 319 | return I2C_FUNC_SMBUS_EMUL; |
@@ -387,7 +381,6 @@ static int attach_inform(struct i2c_client *client) | |||
387 | 381 | ||
388 | static struct i2c_algorithm saa7134_algo = { | 382 | static struct i2c_algorithm saa7134_algo = { |
389 | .master_xfer = saa7134_i2c_xfer, | 383 | .master_xfer = saa7134_i2c_xfer, |
390 | .algo_control = algo_control, | ||
391 | .functionality = functionality, | 384 | .functionality = functionality, |
392 | }; | 385 | }; |
393 | 386 | ||
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 | ||
186 | static int algo_control(struct i2c_adapter *adapter, unsigned int cmd, unsigned long arg) | ||
187 | { | ||
188 | return 0; | ||
189 | } | ||
190 | |||
191 | static u32 functionality(struct i2c_adapter *adap) | 186 | static 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) | |||
199 | static struct i2c_algorithm usbvision_algo = { | 194 | static 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 | ||
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c index 5a1b5f5a7d46..9e7f3e685d73 100644 --- a/drivers/media/video/w9968cf.c +++ b/drivers/media/video/w9968cf.c | |||
@@ -444,8 +444,6 @@ static int w9968cf_i2c_smbus_xfer(struct i2c_adapter*, u16 addr, | |||
444 | static u32 w9968cf_i2c_func(struct i2c_adapter*); | 444 | static u32 w9968cf_i2c_func(struct i2c_adapter*); |
445 | static int w9968cf_i2c_attach_inform(struct i2c_client*); | 445 | static int w9968cf_i2c_attach_inform(struct i2c_client*); |
446 | static int w9968cf_i2c_detach_inform(struct i2c_client*); | 446 | static int w9968cf_i2c_detach_inform(struct i2c_client*); |
447 | static int w9968cf_i2c_control(struct i2c_adapter*, unsigned int cmd, | ||
448 | unsigned long arg); | ||
449 | 447 | ||
450 | /* Memory management */ | 448 | /* Memory management */ |
451 | static void* rvmalloc(unsigned long size); | 449 | static void* rvmalloc(unsigned long size); |
@@ -1543,21 +1541,12 @@ static int w9968cf_i2c_detach_inform(struct i2c_client* client) | |||
1543 | } | 1541 | } |
1544 | 1542 | ||
1545 | 1543 | ||
1546 | static int | ||
1547 | w9968cf_i2c_control(struct i2c_adapter* adapter, unsigned int cmd, | ||
1548 | unsigned long arg) | ||
1549 | { | ||
1550 | return 0; | ||
1551 | } | ||
1552 | |||
1553 | |||
1554 | static int w9968cf_i2c_init(struct w9968cf_device* cam) | 1544 | static int w9968cf_i2c_init(struct w9968cf_device* cam) |
1555 | { | 1545 | { |
1556 | int err = 0; | 1546 | int err = 0; |
1557 | 1547 | ||
1558 | static struct i2c_algorithm algo = { | 1548 | static struct i2c_algorithm algo = { |
1559 | .smbus_xfer = w9968cf_i2c_smbus_xfer, | 1549 | .smbus_xfer = w9968cf_i2c_smbus_xfer, |
1560 | .algo_control = w9968cf_i2c_control, | ||
1561 | .functionality = w9968cf_i2c_func, | 1550 | .functionality = w9968cf_i2c_func, |
1562 | }; | 1551 | }; |
1563 | 1552 | ||