V4L/DVB: IR/mceusb: misc cleanups and init fixes
authorJarod Wilson <jarod@redhat.com>
Wed, 16 Jun 2010 20:10:05 +0000 (17:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:55:47 +0000 (14:55 -0300)
commit657290b63efabfbb2862a6089c3fd5dbcc8e9037
treebc6d92bfe4a8ec4b15d933fa97c9079b1fc15567
parentbd3881b1cedbe6733097bd87da069bd174cc7052
V4L/DVB: IR/mceusb: misc cleanups and init fixes

The first-gen mceusb device init code, while mostly functional, had a few
issues in it. This patch does the following:

1) removes use of magic numbers
2) eliminates mapping of memory from stack
3) makes debug spew translator functional

Additionally, this clean-up revealed that we cannot read the proper default
tx blaster bitmask from the device, we do actually have to initialize it
ourselves, which requires use of a somewhat gross list-based mask inversion
check.

This patch also removes the entirely unnecessary use of struct ir_input_state.

Also supersedes two earlier patches that also touched on first-gen
cleanup, but were partially botched. This one actually compiles, works,
etc., I swear. ;)

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/mceusb.c