From: Jarod Wilson Date: Wed, 16 Jun 2010 20:10:05 +0000 (-0300) Subject: V4L/DVB: IR/mceusb: misc cleanups and init fixes X-Git-Tag: v2.6.36-rc1~582^2~156 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=657290b63efabfbb2862a6089c3fd5dbcc8e9037;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed