aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzequiel GarcĂ­a <elezegarcia@gmail.com>2012-06-27 11:52:47 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 18:52:39 -0400
commitc410d09bf3c8019d50d5ce7f1eb26e1b747835f7 (patch)
treeb9082c40784c4963f96d7aa4c56928d4ef5ec0e8
parent6fe31039d40d73968fe75c543d6b623bcbf5ecb9 (diff)
[media] cx23885: Remove useless struct i2c_algo_bit_data
The field 'struct i2c_algo_bit_data i2c_algo' is wrongly confused with struct i2c_algorithm. Moreover, i2c_algo field is not used since i2c is registered using i2c_add_adpater() and not i2c_bit_add_bus(). Therefore, it's safe to remove it. Tested by compilation only. Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cx23885/cx23885-i2c.c3
-rw-r--r--drivers/media/video/cx23885/cx23885.h2
-rw-r--r--drivers/media/video/saa7164/saa7164.h1
3 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/video/cx23885/cx23885-i2c.c b/drivers/media/video/cx23885/cx23885-i2c.c
index be1e21d8295c..615c71fb4668 100644
--- a/drivers/media/video/cx23885/cx23885-i2c.c
+++ b/drivers/media/video/cx23885/cx23885-i2c.c
@@ -318,8 +318,6 @@ int cx23885_i2c_register(struct cx23885_i2c *bus)
318 318
319 memcpy(&bus->i2c_adap, &cx23885_i2c_adap_template, 319 memcpy(&bus->i2c_adap, &cx23885_i2c_adap_template,
320 sizeof(bus->i2c_adap)); 320 sizeof(bus->i2c_adap));
321 memcpy(&bus->i2c_algo, &cx23885_i2c_algo_template,
322 sizeof(bus->i2c_algo));
323 memcpy(&bus->i2c_client, &cx23885_i2c_client_template, 321 memcpy(&bus->i2c_client, &cx23885_i2c_client_template,
324 sizeof(bus->i2c_client)); 322 sizeof(bus->i2c_client));
325 323
@@ -328,7 +326,6 @@ int cx23885_i2c_register(struct cx23885_i2c *bus)
328 strlcpy(bus->i2c_adap.name, bus->dev->name, 326 strlcpy(bus->i2c_adap.name, bus->dev->name,
329 sizeof(bus->i2c_adap.name)); 327 sizeof(bus->i2c_adap.name));
330 328
331 bus->i2c_algo.data = bus;
332 bus->i2c_adap.algo_data = bus; 329 bus->i2c_adap.algo_data = bus;
333 i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); 330 i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev);
334 i2c_add_adapter(&bus->i2c_adap); 331 i2c_add_adapter(&bus->i2c_adap);
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h
index 13c37ec07ae7..5d560c747e09 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -21,7 +21,6 @@
21 21
22#include <linux/pci.h> 22#include <linux/pci.h>
23#include <linux/i2c.h> 23#include <linux/i2c.h>
24#include <linux/i2c-algo-bit.h>
25#include <linux/kdev_t.h> 24#include <linux/kdev_t.h>
26#include <linux/slab.h> 25#include <linux/slab.h>
27 26
@@ -247,7 +246,6 @@ struct cx23885_i2c {
247 246
248 /* i2c i/o */ 247 /* i2c i/o */
249 struct i2c_adapter i2c_adap; 248 struct i2c_adapter i2c_adap;
250 struct i2c_algo_bit_data i2c_algo;
251 struct i2c_client i2c_client; 249 struct i2c_client i2c_client;
252 u32 i2c_rc; 250 u32 i2c_rc;
253 251
diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h
index fc1f854cbe89..35219b9b0fbc 100644
--- a/drivers/media/video/saa7164/saa7164.h
+++ b/drivers/media/video/saa7164/saa7164.h
@@ -46,7 +46,6 @@
46 46
47#include <linux/pci.h> 47#include <linux/pci.h>
48#include <linux/i2c.h> 48#include <linux/i2c.h>
49#include <linux/i2c-algo-bit.h>
50#include <linux/kdev_t.h> 49#include <linux/kdev_t.h>
51#include <linux/mutex.h> 50#include <linux/mutex.h>
52#include <linux/crc32.h> 51#include <linux/crc32.h>