diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-i2c.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-i2c.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/video/ivtv/ivtv-i2c.c b/drivers/media/video/ivtv/ivtv-i2c.c index 50624c6a62a5..b3557435456d 100644 --- a/drivers/media/video/ivtv/ivtv-i2c.c +++ b/drivers/media/video/ivtv/ivtv-i2c.c | |||
@@ -144,7 +144,7 @@ static int attach_inform(struct i2c_client *client) | |||
144 | } | 144 | } |
145 | } | 145 | } |
146 | if (i == I2C_CLIENTS_MAX) { | 146 | if (i == I2C_CLIENTS_MAX) { |
147 | IVTV_ERR("insufficient room for new I2C client!\n"); | 147 | IVTV_ERR("Insufficient room for new I2C client\n"); |
148 | } | 148 | } |
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
@@ -236,7 +236,7 @@ static int ivtv_ack(struct ivtv *itv) | |||
236 | int ret = 0; | 236 | int ret = 0; |
237 | 237 | ||
238 | if (ivtv_getscl(itv) == 1) { | 238 | if (ivtv_getscl(itv) == 1) { |
239 | IVTV_DEBUG_I2C("SCL was high starting an ack\n"); | 239 | IVTV_DEBUG_HI_I2C("SCL was high starting an ack\n"); |
240 | ivtv_setscl(itv, 0); | 240 | ivtv_setscl(itv, 0); |
241 | if (!ivtv_waitscl(itv, 0)) { | 241 | if (!ivtv_waitscl(itv, 0)) { |
242 | IVTV_DEBUG_I2C("Could not set SCL low starting an ack\n"); | 242 | 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) | |||
263 | { | 263 | { |
264 | int i, bit; | 264 | int i, bit; |
265 | 265 | ||
266 | IVTV_DEBUG_I2C("write %x\n",byte); | 266 | IVTV_DEBUG_HI_I2C("write %x\n",byte); |
267 | for (i = 0; i < 8; ++i, byte<<=1) { | 267 | for (i = 0; i < 8; ++i, byte<<=1) { |
268 | ivtv_setscl(itv, 0); | 268 | ivtv_setscl(itv, 0); |
269 | if (!ivtv_waitscl(itv, 0)) { | 269 | if (!ivtv_waitscl(itv, 0)) { |
@@ -318,7 +318,7 @@ static int ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack) | |||
318 | ivtv_scldelay(itv); | 318 | ivtv_scldelay(itv); |
319 | ivtv_setscl(itv, 0); | 319 | ivtv_setscl(itv, 0); |
320 | ivtv_scldelay(itv); | 320 | ivtv_scldelay(itv); |
321 | IVTV_DEBUG_I2C("read %x\n",*byte); | 321 | IVTV_DEBUG_HI_I2C("read %x\n",*byte); |
322 | return 0; | 322 | return 0; |
323 | } | 323 | } |
324 | 324 | ||
@@ -330,7 +330,7 @@ static int ivtv_start(struct ivtv *itv) | |||
330 | 330 | ||
331 | sda = ivtv_getsda(itv); | 331 | sda = ivtv_getsda(itv); |
332 | if (sda != 1) { | 332 | if (sda != 1) { |
333 | IVTV_DEBUG_I2C("SDA was low at start\n"); | 333 | IVTV_DEBUG_HI_I2C("SDA was low at start\n"); |
334 | ivtv_setsda(itv, 1); | 334 | ivtv_setsda(itv, 1); |
335 | if (!ivtv_waitsda(itv, 1)) { | 335 | if (!ivtv_waitsda(itv, 1)) { |
336 | IVTV_DEBUG_I2C("SDA stuck low\n"); | 336 | IVTV_DEBUG_I2C("SDA stuck low\n"); |
@@ -355,7 +355,7 @@ static int ivtv_stop(struct ivtv *itv) | |||
355 | int i; | 355 | int i; |
356 | 356 | ||
357 | if (ivtv_getscl(itv) != 0) { | 357 | if (ivtv_getscl(itv) != 0) { |
358 | IVTV_DEBUG_I2C("SCL not low when stopping\n"); | 358 | IVTV_DEBUG_HI_I2C("SCL not low when stopping\n"); |
359 | ivtv_setscl(itv, 0); | 359 | ivtv_setscl(itv, 0); |
360 | if (!ivtv_waitscl(itv, 0)) { | 360 | if (!ivtv_waitscl(itv, 0)) { |
361 | IVTV_DEBUG_I2C("SCL could not be set low\n"); | 361 | IVTV_DEBUG_I2C("SCL could not be set low\n"); |
@@ -569,7 +569,7 @@ int ivtv_call_i2c_client(struct ivtv *itv, int addr, unsigned int cmd, void *arg | |||
569 | } | 569 | } |
570 | } | 570 | } |
571 | if (cmd != VIDIOC_G_CHIP_IDENT) | 571 | if (cmd != VIDIOC_G_CHIP_IDENT) |
572 | IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd); | 572 | IVTV_ERR("i2c addr 0x%02x not found for command 0x%x\n", addr, cmd); |
573 | return -ENODEV; | 573 | return -ENODEV; |
574 | } | 574 | } |
575 | 575 | ||
@@ -640,7 +640,7 @@ int ivtv_i2c_hw(struct ivtv *itv, u32 hw, unsigned int cmd, void *arg) | |||
640 | 640 | ||
641 | addr = ivtv_i2c_hw_addr(itv, hw); | 641 | addr = ivtv_i2c_hw_addr(itv, hw); |
642 | if (addr < 0) { | 642 | if (addr < 0) { |
643 | IVTV_ERR("i2c hardware 0x%08x (%s) not found for command 0x%x!\n", | 643 | IVTV_ERR("i2c hardware 0x%08x (%s) not found for command 0x%x\n", |
644 | hw, ivtv_i2c_hw_name(hw), cmd); | 644 | hw, ivtv_i2c_hw_name(hw), cmd); |
645 | return addr; | 645 | return addr; |
646 | } | 646 | } |
@@ -655,7 +655,7 @@ int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg) | |||
655 | addr = ivtv_i2c_id_addr(itv, id); | 655 | addr = ivtv_i2c_id_addr(itv, id); |
656 | if (addr < 0) { | 656 | if (addr < 0) { |
657 | if (cmd != VIDIOC_G_CHIP_IDENT) | 657 | if (cmd != VIDIOC_G_CHIP_IDENT) |
658 | IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n", | 658 | IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x\n", |
659 | id, ivtv_i2c_id_name(id), cmd); | 659 | id, ivtv_i2c_id_name(id), cmd); |
660 | return addr; | 660 | return addr; |
661 | } | 661 | } |
@@ -696,7 +696,7 @@ int ivtv_upd64083(struct ivtv *itv, unsigned int cmd, void *arg) | |||
696 | void ivtv_call_i2c_clients(struct ivtv *itv, unsigned int cmd, void *arg) | 696 | void ivtv_call_i2c_clients(struct ivtv *itv, unsigned int cmd, void *arg) |
697 | { | 697 | { |
698 | if (itv->i2c_adap.algo == NULL) { | 698 | if (itv->i2c_adap.algo == NULL) { |
699 | IVTV_ERR("adapter is not set"); | 699 | IVTV_ERR("Adapter is not set"); |
700 | return; | 700 | return; |
701 | } | 701 | } |
702 | i2c_clients_command(&itv->i2c_adap, cmd, arg); | 702 | i2c_clients_command(&itv->i2c_adap, cmd, arg); |