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)
commite8ffda78623677f7935b30901a173405b4861bda
treebb728024aa0607541546d1ed35bcd8a27af3c46c
parenta2df9d064336ba62b810639114c06b2b0bfe3e0b
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