From patchwork Fri Jul 17 02:58:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 6812261 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 05C1FC05AC for ; Fri, 17 Jul 2015 02:59:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44EF92076A for ; Fri, 17 Jul 2015 02:59:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 046FB20768 for ; Fri, 17 Jul 2015 02:59:03 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DC73326674B; Fri, 17 Jul 2015 04:59:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E5A58260656; Fri, 17 Jul 2015 04:58:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2CE1526065C; Fri, 17 Jul 2015 04:58:52 +0200 (CEST) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by alsa0.perex.cz (Postfix) with ESMTP id D8F6A260654 for ; Fri, 17 Jul 2015 04:58:46 +0200 (CEST) Received: by pacan13 with SMTP id an13so53116216pac.1 for ; Thu, 16 Jul 2015 19:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=RXx5l/IVa2IZPC5ueiWDbCrZLtsj3LhgH53mH9HmixI=; b=kUGYbD5ilzm5mQT2wUvi08yRoAGw+6HHITdgqOj3xJDpJQPXs75Fqmh9ZsJVmGDrLq D6RAABSzGvm7Iu65hv9weJCxtC4Z9vuTR+tUhSIHgfd67g8EI+sDiPktE9IY/gbkRenZ qcgoEUj9i+nkR4wprf4KHnvOPQQLdgZG1pd0s= 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; bh=RXx5l/IVa2IZPC5ueiWDbCrZLtsj3LhgH53mH9HmixI=; b=RmTTKC6MUCEb3/HqiAzLCOWdGxgF+Dhp9yc5Wc9AljNdAldJlmmf939xZG9U/lbhC8 y1PJQ2JyzmOXo74Li+fN1HwiJg56uQ8WDQ+atLzaoP0dOoXgLtBDKNf8ux1yvCdyuQM8 ITNrrucc2Vo5wqNkOLgRZPmfomaAQxLe3Uabr4dGhZC5JNiHB/PSle7475UK/PTAoPum qOrE1lIX1+ERIlbrdvoB7uY3DfoDssG3Yb7vovjXsfQzyU5Rkf8nXfUjPYKZdUtqdbKx XkymI/i9CYORwtm1ozqAEozxr7eoa83us64kfy4nrknD+Mu52L5fbeB0vkLWOIv+/OXl DgqA== X-Gm-Message-State: ALoCoQnxh/xwK+n4kNCBieWXLvWYGBm7ON+L6I1a6550YeYZyEiz+yKnIl9q3qcYDvzIW6R1Bh6F X-Received: by 10.67.30.102 with SMTP id kd6mr24740193pad.132.1437101926094; Thu, 16 Jul 2015 19:58:46 -0700 (PDT) Received: from drinkcat.tpe.corp.google.com ([172.30.210.53]) by smtp.gmail.com with ESMTPSA id da2sm9354871pbb.57.2015.07.16.19.58.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jul 2015 19:58:45 -0700 (PDT) From: Nicolas Boichat To: Mark Brown Date: Fri, 17 Jul 2015 10:58:40 +0800 Message-Id: <1437101920-36908-1-git-send-email-drinkcat@chromium.org> X-Mailer: git-send-email 2.4.3.573.g4eafbef Cc: Oder Chiou , alsa-devel@alsa-project.org, Takashi Iwai , linux-kernel@vger.kernel.org, Liam Girdwood , Bard Liao Subject: [alsa-devel] [PATCH] ASoC: rt5645: Remove unused rt5645 variable X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP "ASoC: rt5645: Simplify rt5645_enable_push_button_irq" removes the test that accessed rt5645->pdata.jd_mode (that test is now done in rt5645_jack_detect only), so we do not need that variable anymore. Signed-off-by: Nicolas Boichat --- Applies on top of topic/rt5645. Sorry for not catching this earlier. sound/soc/codecs/rt5645.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 2cedf0d..c959ee0 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -2763,7 +2763,6 @@ static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec, bool enable) { struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); - struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec); if (enable) { snd_soc_dapm_force_enable_pin(dapm, "ADC L power");