media: ddbridge: add macros to handle IRQs in nibble and byte blocks
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 9 Apr 2018 16:47:41 +0000 (12:47 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:35:39 +0000 (10:35 -0400)
commite8227689f93984348468c9153e23db06ef95491e
tree07ac9733e62b8261f1c3b7723fb2352adcd76949
parent1dda87ac151034f74010818e2fb8637e7ee7f02d
media: ddbridge: add macros to handle IRQs in nibble and byte blocks

Currently, each IRQ requires one IRQ_HANDLE() line to call each IRQ
handler that was set up. Add a IRQ_HANDLE_NIBBLE() and IRQ_HANDLE_BYTE()
macro to call all handlers in blocks of four (_NIBBLE) or eight (_BYTE)
handlers at a time, to make this construct more compact.

Picked up from the upstream dddvb-0.9.33 release.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ddbridge/ddbridge-core.c