V4L/DVB: ir-core: be less pedantic with RC protocol name
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 20 Mar 2010 03:17:58 +0000 (00:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:52:53 +0000 (00:52 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-sysfs.c

index 0592515..253e669 100644 (file)
@@ -93,7 +93,7 @@ static ssize_t store_protocol(struct device *d,
 
        buf = strsep((char **) &data, "\n");
 
-       if (!strcasecmp(buf, "rc-5"))
+       if (!strcasecmp(buf, "rc-5") || !strcasecmp(buf, "rc5"))
                ir_type = IR_TYPE_RC5;
        else if (!strcasecmp(buf, "pd"))
                ir_type = IR_TYPE_PD;