[media] az6007: Simplify the read/write logic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Jul 2011 15:45:16 +0000 (12:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 21 Jan 2012 15:45:44 +0000 (13:45 -0200)
commit3aecf2c5a9881024dc7742568146e2f9a10f19a6
tree6f5c325bd3919d28b183288aa4d414cdd6c1d902
parent3af2f4f15a61b55469a8512d186221eaf7652eec
[media] az6007: Simplify the read/write logic

This patch introduces no functional changes. It basically defines
a macro for each different req found at the driver, and cleans the
code to use them, making easier to understand the code.

With regards to the IR handling code, although the original code
doesn't define what's the request, it is clear, from the USB logs,
that 0xc5 is for IR polling.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6007.c