diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 14:12:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 16:20:12 -0400 |
commit | 2ccb24ff3b94acb3f405b10a59967d52d95f91e0 (patch) | |
tree | 02ae2ea1769200a75e92f457b8eaee0387e71fba /drivers/media/rc/ite-cir.c | |
parent | 620a32bba4a2dd57ccf1d5f87b9e6d2402ffec22 (diff) |
[media] ite-cir: Fix some CodingStyle issues
Cc: Juan J. Garcia de Soria <skandalfo@gmail.com>
Cc: Stephan Raue <stephan@openelec.tv>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/ite-cir.c')
-rw-r--r-- | drivers/media/rc/ite-cir.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 10358d5b3189..9be6a830f1d2 100644 --- a/drivers/media/rc/ite-cir.c +++ b/drivers/media/rc/ite-cir.c | |||
@@ -461,8 +461,10 @@ static int ite_tx_ir(struct rc_dev *rcdev, int *txbuf, u32 n) | |||
461 | else | 461 | else |
462 | val |= ITE_TX_SPACE; | 462 | val |= ITE_TX_SPACE; |
463 | 463 | ||
464 | /* if we get to 0 available, read again, just in case | 464 | /* |
465 | * some other slot got freed */ | 465 | * if we get to 0 available, read again, just in case |
466 | * some other slot got freed | ||
467 | */ | ||
466 | if (fifo_avail <= 0) | 468 | if (fifo_avail <= 0) |
467 | fifo_avail = ITE_TX_FIFO_LEN - dev->params.get_tx_used_slots(dev); | 469 | fifo_avail = ITE_TX_FIFO_LEN - dev->params.get_tx_used_slots(dev); |
468 | 470 | ||
@@ -1511,7 +1513,7 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id | |||
1511 | 1513 | ||
1512 | /* store resource values */ | 1514 | /* store resource values */ |
1513 | itdev->cir_addr = pnp_port_start(pdev, 0); | 1515 | itdev->cir_addr = pnp_port_start(pdev, 0); |
1514 | itdev->cir_irq =pnp_irq(pdev, 0); | 1516 | itdev->cir_irq = pnp_irq(pdev, 0); |
1515 | 1517 | ||
1516 | /* initialize spinlocks */ | 1518 | /* initialize spinlocks */ |
1517 | spin_lock_init(&itdev->lock); | 1519 | spin_lock_init(&itdev->lock); |