]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78b85f375adbaaf6f9e7b867899f90c1097a9c0a
tree07ac9733e62b8261f1c3b7723fb2352adcd76949
parentae89482819a87ce2fccb62ab64405078e2faa0ad
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