Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65683
b: refs/heads/master
c: 36c15f8
h: refs/heads/master
i:
  65681: 7941ee8
  65679: d56adc2
v: v3
  • Loading branch information
Oliver Endriss authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 109cf4f commit 15343fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac247433fe205acf460f05de64a30ee71ea307f2
refs/heads/master: 36c15f8ee41fbc3d8eaf88bba95be3d50268d5d2
1 change: 0 additions & 1 deletion trunk/drivers/media/common/saa7146_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ EXPORT_SYMBOL_GPL(saa7146_wait_for_debi_done);

EXPORT_SYMBOL_GPL(saa7146_setgpio);

EXPORT_SYMBOL_GPL(saa7146_i2c_transfer);
EXPORT_SYMBOL_GPL(saa7146_i2c_adapter_prepare);

EXPORT_SYMBOL_GPL(saa7146_debug);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/common/saa7146_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword, int short_d
return 0;
}

int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries)
static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries)
{
int i = 0, count = 0;
u32* buffer = dev->d_i2c.cpu_addr;
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/dvb/ttpci/av7110_v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,25 @@ static struct v4l2_input inputs[4] = {

static int ves1820_writereg(struct saa7146_dev *dev, u8 addr, u8 reg, u8 data)
{
struct av7110 *av7110 = dev->ext_priv;
u8 buf[] = { 0x00, reg, data };
struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 };

dprintk(4, "dev: %p\n", dev);

if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1))
if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1))
return -1;
return 0;
}

static int tuner_write(struct saa7146_dev *dev, u8 addr, u8 data [4])
{
struct av7110 *av7110 = dev->ext_priv;
struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = data, .len = 4 };

dprintk(4, "dev: %p\n", dev);

if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1))
if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1))
return -1;
return 0;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/include/media/saa7146.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ struct saa7146_dev

/* from saa7146_i2c.c */
int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate);
int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg *msgs, int num, int retries);

/* from saa7146_core.c */
extern struct list_head saa7146_devices;
Expand Down

0 comments on commit 15343fb

Please sign in to comment.