From: Mauro Carvalho Chehab Date: Wed, 2 Dec 2009 18:56:47 +0000 (-0300) Subject: V4L/DVB (13540): ir-common: Cleanup get key evdev code X-Git-Tag: v2.6.33-rc1~338^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fee03e487e87a196deb5602ee3c7676511995c9;p=pandora-kernel.git V4L/DVB (13540): ir-common: Cleanup get key evdev code The same loop to seek for a key were used on different places. Also, no spinlock were protecting it to avoid the risk of replacing a keycode while seeking for a new code. This cleanup does: - create an unique function to seek for a code; - adds an spinlock to protect the table lookup; - remove some unused code; - simplifies to code to make it easier to understand. Basically no change in behavior should be noticed after this patch. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed