mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
[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>
This commit is contained in:
parent
4a5006f68d
commit
a824f0f445
@ -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__);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user