aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2011-11-09 11:27:53 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 12:11:17 -0500
commita824f0f445ad2c86a40b4bf43acba26dfd0a98a9 (patch)
tree10ad4a70f1f40b6077aa80ce05054f0d16c3a5e2
parent4a5006f68d6b336564eb1e4cbb1f66d234958889 (diff)
[media] video: Drop undue references to i2c-algo-bit
There's one comment that has been copied from bttv to many other media/video drivers: /* init + register i2c algo-bit adapter */ Meanwhile, many drivers use hardware I2C implementations instead of relying on i2c-algo-bit, so this comment is misleading. Remove the reference to "algo-bit" from all drivers, to avoid any confusion. This is the best way to ensure that the comments won't go out of sync again. Anyone interested in the implementation details would rather look at the code itself. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/au0828/au0828-i2c.c2
-rw-r--r--drivers/media/video/bt8xx/bttv-i2c.c2
-rw-r--r--drivers/media/video/cx18/cx18-i2c.c2
-rw-r--r--drivers/media/video/cx18/cx18-i2c.h2
-rw-r--r--drivers/media/video/cx23885/cx23885-i2c.c2
-rw-r--r--drivers/media/video/cx25821/cx25821-i2c.c2
-rw-r--r--drivers/media/video/cx88/cx88-i2c.c2
-rw-r--r--drivers/media/video/ivtv/ivtv-i2c.h2
8 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c
index cbdb65c34f21..05c299fa5d79 100644
--- a/drivers/media/video/au0828/au0828-i2c.c
+++ b/drivers/media/video/au0828/au0828-i2c.c
@@ -348,7 +348,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
348 } 348 }
349} 349}
350 350
351/* init + register i2c algo-bit adapter */ 351/* init + register i2c adapter */
352int au0828_i2c_register(struct au0828_dev *dev) 352int au0828_i2c_register(struct au0828_dev *dev)
353{ 353{
354 dprintk(1, "%s()\n", __func__); 354 dprintk(1, "%s()\n", __func__);
diff --git a/drivers/media/video/bt8xx/bttv-i2c.c b/drivers/media/video/bt8xx/bttv-i2c.c
index e3952af7e56e..580c8e682392 100644
--- a/drivers/media/video/bt8xx/bttv-i2c.c
+++ b/drivers/media/video/bt8xx/bttv-i2c.c
@@ -346,7 +346,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
346 } 346 }
347} 347}
348 348
349/* init + register i2c algo-bit adapter */ 349/* init + register i2c adapter */
350int __devinit init_bttv_i2c(struct bttv *btv) 350int __devinit init_bttv_i2c(struct bttv *btv)
351{ 351{
352 strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE); 352 strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE);
diff --git a/drivers/media/video/cx18/cx18-i2c.c b/drivers/media/video/cx18/cx18-i2c.c
index 040aaa87579d..51609d5c88ce 100644
--- a/drivers/media/video/cx18/cx18-i2c.c
+++ b/drivers/media/video/cx18/cx18-i2c.c
@@ -232,7 +232,7 @@ static struct i2c_algo_bit_data cx18_i2c_algo_template = {
232 .timeout = CX18_ALGO_BIT_TIMEOUT*HZ /* jiffies */ 232 .timeout = CX18_ALGO_BIT_TIMEOUT*HZ /* jiffies */
233}; 233};
234 234
235/* init + register i2c algo-bit adapter */ 235/* init + register i2c adapter */
236int init_cx18_i2c(struct cx18 *cx) 236int init_cx18_i2c(struct cx18 *cx)
237{ 237{
238 int i, err; 238 int i, err;
diff --git a/drivers/media/video/cx18/cx18-i2c.h b/drivers/media/video/cx18/cx18-i2c.h
index bdfd1921e300..1180fdc8d983 100644
--- a/drivers/media/video/cx18/cx18-i2c.h
+++ b/drivers/media/video/cx18/cx18-i2c.h
@@ -24,6 +24,6 @@
24int cx18_i2c_register(struct cx18 *cx, unsigned idx); 24int cx18_i2c_register(struct cx18 *cx, unsigned idx);
25struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw); 25struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
26 26
27/* init + register i2c algo-bit adapter */ 27/* init + register i2c adapter */
28int init_cx18_i2c(struct cx18 *cx); 28int init_cx18_i2c(struct cx18 *cx);
29void exit_cx18_i2c(struct cx18 *cx); 29void exit_cx18_i2c(struct cx18 *cx);
diff --git a/drivers/media/video/cx23885/cx23885-i2c.c b/drivers/media/video/cx23885/cx23885-i2c.c
index 0ff7a9e98f3e..be1e21d8295c 100644
--- a/drivers/media/video/cx23885/cx23885-i2c.c
+++ b/drivers/media/video/cx23885/cx23885-i2c.c
@@ -309,7 +309,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
309 } 309 }
310} 310}
311 311
312/* init + register i2c algo-bit adapter */ 312/* init + register i2c adapter */
313int cx23885_i2c_register(struct cx23885_i2c *bus) 313int cx23885_i2c_register(struct cx23885_i2c *bus)
314{ 314{
315 struct cx23885_dev *dev = bus->dev; 315 struct cx23885_dev *dev = bus->dev;
diff --git a/drivers/media/video/cx25821/cx25821-i2c.c b/drivers/media/video/cx25821/cx25821-i2c.c
index 4d3d0ce40785..77fa8eba1f91 100644
--- a/drivers/media/video/cx25821/cx25821-i2c.c
+++ b/drivers/media/video/cx25821/cx25821-i2c.c
@@ -300,7 +300,7 @@ static struct i2c_client cx25821_i2c_client_template = {
300 .name = "cx25821 internal", 300 .name = "cx25821 internal",
301}; 301};
302 302
303/* init + register i2c algo-bit adapter */ 303/* init + register i2c adapter */
304int cx25821_i2c_register(struct cx25821_i2c *bus) 304int cx25821_i2c_register(struct cx25821_i2c *bus)
305{ 305{
306 struct cx25821_dev *dev = bus->dev; 306 struct cx25821_dev *dev = bus->dev;
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c
index a1fe0abb6e43..de0f1af74e41 100644
--- a/drivers/media/video/cx88/cx88-i2c.c
+++ b/drivers/media/video/cx88/cx88-i2c.c
@@ -132,7 +132,7 @@ static void do_i2c_scan(const char *name, struct i2c_client *c)
132 } 132 }
133} 133}
134 134
135/* init + register i2c algo-bit adapter */ 135/* init + register i2c adapter */
136int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) 136int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci)
137{ 137{
138 /* Prevents usage of invalid delay values */ 138 /* Prevents usage of invalid delay values */
diff --git a/drivers/media/video/ivtv/ivtv-i2c.h b/drivers/media/video/ivtv/ivtv-i2c.h
index 9332920ca4ff..7b9ec1cfeb80 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.h
+++ b/drivers/media/video/ivtv/ivtv-i2c.h
@@ -25,7 +25,7 @@ struct i2c_client *ivtv_i2c_new_ir_legacy(struct ivtv *itv);
25int ivtv_i2c_register(struct ivtv *itv, unsigned idx); 25int ivtv_i2c_register(struct ivtv *itv, unsigned idx);
26struct v4l2_subdev *ivtv_find_hw(struct ivtv *itv, u32 hw); 26struct v4l2_subdev *ivtv_find_hw(struct ivtv *itv, u32 hw);
27 27
28/* init + register i2c algo-bit adapter */ 28/* init + register i2c adapter */
29int init_ivtv_i2c(struct ivtv *itv); 29int init_ivtv_i2c(struct ivtv *itv);
30void exit_ivtv_i2c(struct ivtv *itv); 30void exit_ivtv_i2c(struct ivtv *itv);
31 31