media: mtk-cir: only allow protocols that have software decoders
authorSean Young <sean@mess.org>
Fri, 12 Jul 2019 22:46:58 +0000 (18:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Jul 2019 19:21:47 +0000 (15:21 -0400)
commiteab865203f405501f799e1d7b7b020746e6ea26e
treec960c5e1310f2bb2d588559005b9a1b86d47fcda
parentd3bfed33e2d80ce5a25549c2f935c91775b2b3f3
media: mtk-cir: only allow protocols that have software decoders

RC_PROTO_BIT_ALL includes protocols like unknown and other that do not
have IR decoders by definition. If these protocols are set in the
allowed_protocols, they will show in the protocols sysfs file but cannot
be enabled.

Signed-off-by: Sean Young <sean@mess.org>
Acked-by: Sean Wang <sean.wang@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/mtk-cir.c