[media] em28xx: input: use common work_struct callback function for IR RC key polling
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 13 Jan 2013 13:20:45 +0000 (10:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 22:43:16 +0000 (20:43 -0200)
commit9b4539bebb86310afdc5563653ec4475ae110088
tree4c6f154da88212a29dc7abdc14bd5a75d29feb35
parent1d968cdaaec2ea994b2656c00b5a4f10d4159fe8
[media] em28xx: input: use common work_struct callback function for IR RC key polling

Remove em28xx_i2c_ir_work() and check the device type in the common callback
function em28xx_ir_work() instead. Simplifies em28xx_ir_start().
Reduces the code size with a minor performance drawback.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-input.c