]> git.baikalelectronics.ru Git - kernel.git/commit
media: rc: ir-nec-decoder: move scancode composing code into a shared function
authorShawn Guo <shawn.guo@linaro.org>
Sun, 30 Jul 2017 13:23:11 +0000 (09:23 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:49:18 +0000 (09:49 -0400)
commit5ae8e90a55bc607acac8fdcad84b51885eafa6f8
treebb728024aa0607541546d1ed35bcd8a27af3c46c
parent62a84d16c35cd37f3ae6d1db196d55538b788388
media: rc: ir-nec-decoder: move scancode composing code into a shared function

The NEC scancode composing and protocol type detection in
ir_nec_decode() is generic enough to be a shared function.  Let's create
an inline function in rc-core.h, so that other remote control drivers
can reuse this function to save some code.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-nec-decoder.c
include/media/rc-core.h