V4L/DVB: ir-core: be less pedantic with RC protocol name

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2010-03-20 00:17:58 -03:00
parent ed3de6015a
commit ecf6e72da3
1 changed files with 1 additions and 1 deletions

View File

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