[media] rc-core: img-ir - leave the internals of rc_dev alone
authorDavid Härdeman <david@hardeman.nu>
Mon, 1 May 2017 16:10:01 +0000 (13:10 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 12:08:50 +0000 (09:08 -0300)
Changing the protocol does not imply that the keymap changes.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/img-ir/img-ir-hw.c

index 431d33b..8d14396 100644 (file)
@@ -702,10 +702,6 @@ static void img_ir_set_protocol(struct img_ir_priv *priv, u64 proto)
 {
        struct rc_dev *rdev = priv->hw.rdev;
 
-       spin_lock_irq(&rdev->rc_map.lock);
-       rdev->rc_map.rc_type = __ffs64(proto);
-       spin_unlock_irq(&rdev->rc_map.lock);
-
        mutex_lock(&rdev->lock);
        rdev->enabled_protocols = proto;
        rdev->allowed_wakeup_protocols = proto;