media: rc: mtk-cir: add platform data to adapt into various hardware
authorSean Wang <sean.wang@mediatek.com>
Fri, 30 Jun 2017 06:03:05 +0000 (02:03 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:38:23 +0000 (09:38 -0400)
commit50c3c1ba171f3f68f2aa820121517deb5211e7ee
tree513cce8e605e067cdb42aef2c75b3d8f3d4cdb34
parentca439a04709b603047af0878e5551c81851b8885
media: rc: mtk-cir: add platform data to adapt into various hardware

This patch is the preparation patch in order to adapt into various
hardware through adding platform data which holds specific characteristics
and differences among MediaTek supported CIR devices instead of the old
way defining those data in the static way as macro has. And the existing
logic would be slightly changed to operate on those data which the actual
device depends on.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/mtk-cir.c