forked from luck/tmp_suning_uos_patched
[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>
This commit is contained in:
parent
620a32bba4
commit
2ccb24ff3b
@ -461,8 +461,10 @@ static int ite_tx_ir(struct rc_dev *rcdev, int *txbuf, u32 n)
|
||||
else
|
||||
val |= ITE_TX_SPACE;
|
||||
|
||||
/* if we get to 0 available, read again, just in case
|
||||
* some other slot got freed */
|
||||
/*
|
||||
* if we get to 0 available, read again, just in case
|
||||
* some other slot got freed
|
||||
*/
|
||||
if (fifo_avail <= 0)
|
||||
fifo_avail = ITE_TX_FIFO_LEN - dev->params.get_tx_used_slots(dev);
|
||||
|
||||
|
@ -25,14 +25,17 @@
|
||||
/* logging macros */
|
||||
#define ite_pr(level, text, ...) \
|
||||
printk(level KBUILD_MODNAME ": " text, ## __VA_ARGS__)
|
||||
#define ite_dbg(text, ...) \
|
||||
#define ite_dbg(text, ...) do { \
|
||||
if (debug) \
|
||||
printk(KERN_DEBUG \
|
||||
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__)
|
||||
#define ite_dbg_verbose(text, ...) \
|
||||
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define ite_dbg_verbose(text, ...) do {\
|
||||
if (debug > 1) \
|
||||
printk(KERN_DEBUG \
|
||||
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__)
|
||||
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/* FIFO sizes */
|
||||
#define ITE_TX_FIFO_LEN 32
|
||||
|
Loading…
Reference in New Issue
Block a user