upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:58:48 +0000 (11:58 +0900)
commit811a207a9ce130613d5b9460bca0a08f7c21db9b
tree06c04af7b4467255f1d8fadf2a5c590f135fb5f0
parenta9fe97771f2aa6875a4f21e3f1fc759f9f9981ee
upstream: [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