Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=36c15f8ee41fbc3d8eaf88bba95be3d50268d5d2
Commit:     36c15f8ee41fbc3d8eaf88bba95be3d50268d5d2
Parent:     ac247433fe205acf460f05de64a30ee71ea307f2
Author:     Oliver Endriss <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 13:59:55 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:03:28 2007 -0300

    V4L/DVB (5934): dvb-ttpci/saa7146: Replace saa7146_i2c_transfer by generic 
i2c_transfer
    
    Convert av7110_v4l.c to use i2c_transfer() instead of 
saa7146_i2c_transfer().
    Make saa7146_i2c_transfer() static.
    
    Signed-off-by: Oliver Endriss <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/common/saa7146_core.c  |    1 -
 drivers/media/common/saa7146_i2c.c   |    2 +-
 drivers/media/dvb/ttpci/av7110_v4l.c |    6 ++++--
 include/media/saa7146.h              |    1 -
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/common/saa7146_core.c 
b/drivers/media/common/saa7146_core.c
index ba6701e..12cda9e 100644
--- a/drivers/media/common/saa7146_core.c
+++ b/drivers/media/common/saa7146_core.c
@@ -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);
diff --git a/drivers/media/common/saa7146_i2c.c 
b/drivers/media/common/saa7146_i2c.c
index 8c85efc..f823286 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -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;
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c 
b/drivers/media/dvb/ttpci/av7110_v4l.c
index 87afaeb..76cca00 100644
--- a/drivers/media/dvb/ttpci/av7110_v4l.c
+++ b/drivers/media/dvb/ttpci/av7110_v4l.c
@@ -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;
 }
diff --git a/include/media/saa7146.h b/include/media/saa7146.h
index 6770324..cd3ff2c 100644
--- a/include/media/saa7146.h
+++ b/include/media/saa7146.h
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to