OSDN Git Service

[media] video: Drop undue references to i2c-algo-bit
authorJean Delvare <khali@linux-fr.org>
Wed, 9 Nov 2011 16:27:53 +0000 (13:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 17:11:17 +0000 (15:11 -0200)
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>
drivers/media/video/au0828/au0828-i2c.c
drivers/media/video/bt8xx/bttv-i2c.c
drivers/media/video/cx18/cx18-i2c.c
drivers/media/video/cx18/cx18-i2c.h
drivers/media/video/cx23885/cx23885-i2c.c
drivers/media/video/cx25821/cx25821-i2c.c
drivers/media/video/cx88/cx88-i2c.c
drivers/media/video/ivtv/ivtv-i2c.h

index cbdb65c..05c299f 100644 (file)
@@ -348,7 +348,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
        }
 }
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int au0828_i2c_register(struct au0828_dev *dev)
 {
        dprintk(1, "%s()\n", __func__);
index e3952af..580c8e6 100644 (file)
@@ -346,7 +346,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
        }
 }
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int __devinit init_bttv_i2c(struct bttv *btv)
 {
        strlcpy(btv->i2c_client.name, "bttv internal", I2C_NAME_SIZE);
index 040aaa8..51609d5 100644 (file)
@@ -232,7 +232,7 @@ static struct i2c_algo_bit_data cx18_i2c_algo_template = {
        .timeout        = CX18_ALGO_BIT_TIMEOUT*HZ /* jiffies */
 };
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int init_cx18_i2c(struct cx18 *cx)
 {
        int i, err;
index bdfd192..1180fdc 100644 (file)
@@ -24,6 +24,6 @@
 int cx18_i2c_register(struct cx18 *cx, unsigned idx);
 struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int init_cx18_i2c(struct cx18 *cx);
 void exit_cx18_i2c(struct cx18 *cx);
index 0ff7a9e..be1e21d 100644 (file)
@@ -309,7 +309,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c)
        }
 }
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int cx23885_i2c_register(struct cx23885_i2c *bus)
 {
        struct cx23885_dev *dev = bus->dev;
index 4d3d0ce..77fa8eb 100644 (file)
@@ -300,7 +300,7 @@ static struct i2c_client cx25821_i2c_client_template = {
        .name = "cx25821 internal",
 };
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int cx25821_i2c_register(struct cx25821_i2c *bus)
 {
        struct cx25821_dev *dev = bus->dev;
index a1fe0ab..de0f1af 100644 (file)
@@ -132,7 +132,7 @@ static void do_i2c_scan(const char *name, struct i2c_client *c)
        }
 }
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci)
 {
        /* Prevents usage of invalid delay values */
index 9332920..7b9ec1c 100644 (file)
@@ -25,7 +25,7 @@ struct i2c_client *ivtv_i2c_new_ir_legacy(struct ivtv *itv);
 int ivtv_i2c_register(struct ivtv *itv, unsigned idx);
 struct v4l2_subdev *ivtv_find_hw(struct ivtv *itv, u32 hw);
 
-/* init + register i2c algo-bit adapter */
+/* init + register i2c adapter */
 int init_ivtv_i2c(struct ivtv *itv);
 void exit_ivtv_i2c(struct ivtv *itv);