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: 4756241 Return-Path: X-Original-To: patchwork-linux-media@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 895C3C0338 for ; Thu, 21 Aug 2014 09:25:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6131200E0 for ; Thu, 21 Aug 2014 09:25:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED3C2200C6 for ; Thu, 21 Aug 2014 09:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753941AbaHUJZc (ORCPT ); Thu, 21 Aug 2014 05:25:32 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:47191 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754343AbaHUJZ1 (ORCPT ); Thu, 21 Aug 2014 05:25:27 -0400 Received: by mail-pa0-f44.google.com with SMTP id eu11so13921563pac.3 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=a1b66intiyiHb9jYFXcnXZzOUsrhxFpxAOd48LGB+PpedAMVpyMGQBWmmU1NIa36Ku BDM0UPYp5idnCGDwCvWU11m5jYpuiQ2v5bKjdxIxgKErOsjuV4yc+w1Fn1i6+SB3VvQ/ Gq8gWBWigEpwyOXkTGT5Rbx7mMUjr1awPcSc/qDhD3j85xp7d4u9C2vSfDxuYhxr7w8+ Vrrj9cSNg2Svi40g7kmZm/FQt4Fvv7b1E+Or3nmnChC8AFQ0cvEJRVPzhy1HPhOnIkGT JoQOf4YQkoEoAaXJ4yEHfu/5nLqMf4brtCHXGs6Ty+R+yUlPpXMHJo8u2qeNkcHOZbmQ p13A== X-Gm-Message-State: ALoCoQmkVoTsjGT1QhawgVPaCH/OfDitarO2e/fvJD6PiSK7QKqpjnOzS7vJljOw2KAcZCXrIp5+ 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, Zhangfei Gao 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> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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);