[media] rc: add allowed/enabled wakeup protocol masks
authorJames Hogan <james.hogan@imgtec.com>
Fri, 28 Feb 2014 23:17:04 +0000 (20:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 16:25:49 +0000 (13:25 -0300)
commitacff5f24732acc8a55d0a0f0ee1d19442267df63
tree54c8b9db77a01b286c6e1dedf93cb19556448483
parent1a1934fab0c920f0d3bceeb60c9fe2dae8a56be9
[media] rc: add allowed/enabled wakeup protocol masks

Only a single allowed and enabled protocol mask currently exists in
struct rc_dev, however to support a separate wakeup filter protocol two
of each are needed, ideally as an array.

Therefore make both rc_dev::allowed_protos and rc_dev::enabled_protocols
arrays, update all users to reference the first element
(RC_FILTER_NORMAL), and add a couple more helper functions for drivers
to use for setting the allowed and enabled wakeup protocols.

We also rename allowed_protos to allowed_protocols while we're at it,
which is more consistent with enabled_protocols.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/rc-main.c
include/media/rc-core.h