Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=11d28766deedc8bcadc87db8a65775a41c15789a
Commit:     11d28766deedc8bcadc87db8a65775a41c15789a
Parent:     4b9bc014bf4c65e1da86fbc9721f04e2763feca9
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 12:47:38 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 17:35:45 2007 -0300

    V4L/DVB (5853): ivtv: add support to suppress high volume i2c debug 
messages.
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/ivtv/ivtv-i2c.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/video/ivtv/ivtv-i2c.c 
b/drivers/media/video/ivtv/ivtv-i2c.c
index 50624c6..7143554 100644
--- a/drivers/media/video/ivtv/ivtv-i2c.c
+++ b/drivers/media/video/ivtv/ivtv-i2c.c
@@ -236,7 +236,7 @@ static int ivtv_ack(struct ivtv *itv)
        int ret = 0;
 
        if (ivtv_getscl(itv) == 1) {
-               IVTV_DEBUG_I2C("SCL was high starting an ack\n");
+               IVTV_DEBUG_HI_I2C("SCL was high starting an ack\n");
                ivtv_setscl(itv, 0);
                if (!ivtv_waitscl(itv, 0)) {
                        IVTV_DEBUG_I2C("Could not set SCL low starting an 
ack\n");
@@ -263,7 +263,7 @@ static int ivtv_sendbyte(struct ivtv *itv, unsigned char 
byte)
 {
        int i, bit;
 
-       IVTV_DEBUG_I2C("write %x\n",byte);
+       IVTV_DEBUG_HI_I2C("write %x\n",byte);
        for (i = 0; i < 8; ++i, byte<<=1) {
                ivtv_setscl(itv, 0);
                if (!ivtv_waitscl(itv, 0)) {
@@ -318,7 +318,7 @@ static int ivtv_readbyte(struct ivtv *itv, unsigned char 
*byte, int nack)
        ivtv_scldelay(itv);
        ivtv_setscl(itv, 0);
        ivtv_scldelay(itv);
-       IVTV_DEBUG_I2C("read %x\n",*byte);
+       IVTV_DEBUG_HI_I2C("read %x\n",*byte);
        return 0;
 }
 
@@ -330,7 +330,7 @@ static int ivtv_start(struct ivtv *itv)
 
        sda = ivtv_getsda(itv);
        if (sda != 1) {
-               IVTV_DEBUG_I2C("SDA was low at start\n");
+               IVTV_DEBUG_HI_I2C("SDA was low at start\n");
                ivtv_setsda(itv, 1);
                if (!ivtv_waitsda(itv, 1)) {
                        IVTV_DEBUG_I2C("SDA stuck low\n");
@@ -355,7 +355,7 @@ static int ivtv_stop(struct ivtv *itv)
        int i;
 
        if (ivtv_getscl(itv) != 0) {
-               IVTV_DEBUG_I2C("SCL not low when stopping\n");
+               IVTV_DEBUG_HI_I2C("SCL not low when stopping\n");
                ivtv_setscl(itv, 0);
                if (!ivtv_waitscl(itv, 0)) {
                        IVTV_DEBUG_I2C("SCL could not be set low\n");
-
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