From patchwork Sun Feb 13 10:29:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QW50dGkgU2VwcMOkbMOk?= X-Patchwork-Id: 552941 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1DAeWpj026552 for ; Sun, 13 Feb 2011 10:40:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754085Ab1BMKkQ (ORCPT ); Sun, 13 Feb 2011 05:40:16 -0500 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:58516 "EHLO emh04.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753955Ab1BMKkP convert rfc822-to-8bit (ORCPT ); Sun, 13 Feb 2011 05:40:15 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 13 Feb 2011 10:40:33 +0000 (UTC) X-Greylist: delayed 631 seconds by postgrey-1.27 at vger.kernel.org; Sun, 13 Feb 2011 05:40:15 EST Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh04-2.mail.saunalahti.fi (Postfix) with SMTP id 5994313B739; Sun, 13 Feb 2011 12:29:42 +0200 (EET) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A052D448F97; Sun, 13 Feb 2011 12:29:42 +0200 Received: from pixie.elisa-laajakaista.fi (a88-113-8-251.elisa-laajakaista.fi [88.113.8.251]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id E88BE1C6384; Sun, 13 Feb 2011 12:29:37 +0200 (EET) From: =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= To: Mauro Carvalho Chehab Cc: Jarod Wilson , linux-media@vger.kernel.org, =?UTF-8?q?Antti=20Sepp=C3=A4l=C3=A4?= Subject: [PATCH] Fix sysfs rc protocol lookup for rc-5-sz Date: Sun, 13 Feb 2011 12:29:15 +0200 Message-Id: <1297592955-19860-1-git-send-email-a.seppala@gmail.com> X-Mailer: git-send-email 1.7.3.4 MIME-Version: 1.0 X-Antivirus: VAMS Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 512a2f4..5b4422e 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -850,7 +850,7 @@ static ssize_t store_protocols(struct device *device, count++; } else { for (i = 0; i < ARRAY_SIZE(proto_names); i++) { - if (!strncasecmp(tmp, proto_names[i].name, strlen(proto_names[i].name))) { + if (!strcasecmp(tmp, proto_names[i].name)) { tmp += strlen(proto_names[i].name); mask = proto_names[i].type; break;