From: David Härdeman Date: Wed, 6 Mar 2013 19:52:05 +0000 (-0300) Subject: [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~81^2~310 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9719afae5e589b409e137c36f89073d134f0de33;p=pandora-kernel.git [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap store_protocols() treats dev->rc_map.rc_type as a bitmap which is wrong for two reasons. First of all, it is pretty bogus to change the protocol type of the keymap just because the hardware has been asked to decode a different protocol. Second, dev->rc_map.rc_type is an enum (i.e. a single protocol) as pointed out by James Hogan . Fix both issues by introducing a separate enabled_protocols member to struct rc_dev. Signed-off-by: David Härdeman Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed