From patchwork Thu Aug 21 09:24:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4756271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5C45C0338 for ; Thu, 21 Aug 2014 09:27:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F0A0520172 for ; Thu, 21 Aug 2014 09:27:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 35DB120160 for ; Thu, 21 Aug 2014 09:27:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKOd0-0006fe-5z; Thu, 21 Aug 2014 09:25:54 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKOcu-0006Cv-K9 for linux-arm-kernel@lists.infradead.org; Thu, 21 Aug 2014 09:25:49 +0000 Received: by mail-pd0-f179.google.com with SMTP id v10so13453110pde.10 for ; Thu, 21 Aug 2014 02:25:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yRWyD3cnsfNaMjlmUowPGUhdFLjgbghASGaLJiMHoPI=; b=Ttc4AT3FWJyaftixuTYUWknKClHdnP0hhedc8BhgWzCx7wGdrkE8XK+zE1RITCdgD+ 2+BPXSTOukfGM/0qJABNAD4kHJ5ZTDyT2vNbU0bb9f7GUCmHNsHyojjHfzaP1t05KmCa RQ65HOuS9ElphlNAb2VKYSyv97zbbxAwSV1EFpVUgfvVfMFLbgbbcs44kxNUcoGBe4Td /0djVK4qpSxrjmyD6UQzTWYbuNzdIqN2PAWgRQ9QXEMqOBIq6arZThjVLa0XMQBuZXMY 3Lj1wTU3Unx993dVfFnKvT65oa5IDQaCLvRRSEMvFTAkWOJn61mfDWVomvYS9tQ8dWU3 YUYQ== X-Gm-Message-State: ALoCoQmZ+IhONaf+v+A/sdlMmWWWHEchhYDgU5pSM78Zi4JMmfAzut+QES9PXaJb/K1ceZ1RvjAi X-Received: by 10.66.158.130 with SMTP id wu2mr59661149pab.59.1408613126455; Thu, 21 Aug 2014 02:25:26 -0700 (PDT) Received: from localhost.localdomain ([124.73.89.210]) by mx.google.com with ESMTPSA id mj6sm5399096pdb.74.2014.08.21.02.25.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 02:25:25 -0700 (PDT) From: Zhangfei Gao To: Mauro Carvalho Chehab , =?UTF-8?q?David=20H=C3=A4rdeman?= , arnd@arndb.de, haifeng.yan@linaro.org, jchxue@gmail.com Subject: [PATCH v2 3/3] [media] rc: remove change_protocol in rc-ir-raw.c Date: Thu, 21 Aug 2014 17:24:45 +0800 Message-Id: <1408613086-12538-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1408613086-12538-1-git-send-email-zhangfei.gao@linaro.org> References: <1408613086-12538-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140821_022548_711121_8744F02A X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.4 (-) Cc: devicetree@vger.kernel.org, Zhangfei Gao , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With commit 4924a311a62f ("[media] rc-core: rename ir-raw.c"), empty change_protocol was introduced. As a result, rc_register_device will set dev->enabled_protocols addording to rc_map->rc_type, which prevent using all protocols. Signed-off-by: Zhangfei Gao --- drivers/media/rc/rc-ir-raw.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/media/rc/rc-ir-raw.c b/drivers/media/rc/rc-ir-raw.c index e8fff2a..a118539 100644 --- a/drivers/media/rc/rc-ir-raw.c +++ b/drivers/media/rc/rc-ir-raw.c @@ -240,12 +240,6 @@ ir_raw_get_allowed_protocols(void) return protocols; } -static int change_protocol(struct rc_dev *dev, u64 *rc_type) -{ - /* the caller will update dev->enabled_protocols */ - return 0; -} - /* * Used to (un)register raw event clients */ @@ -263,7 +257,6 @@ int ir_raw_event_register(struct rc_dev *dev) dev->raw->dev = dev; dev->enabled_protocols = ~0; - dev->change_protocol = change_protocol; rc = kfifo_alloc(&dev->raw->kfifo, sizeof(struct ir_raw_event) * MAX_IR_EVENT_SIZE, GFP_KERNEL);