From patchwork Mon Jan 14 14:36:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 155513 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3728015jaa; Mon, 14 Jan 2019 06:36:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN4dMQUlKT5QWNR/q/JaSYKMmS/VOO1b2YLR3vkd0qVJPSAV98DMIeYcxKDc/PA9EvlLFD7+ X-Received: by 2002:a5d:448f:: with SMTP id j15mr22941240wrq.108.1547476613113; Mon, 14 Jan 2019 06:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547476613; cv=none; d=google.com; s=arc-20160816; b=Om6JFUwzjD8BIzNomNKR19U/vLU4jb/7ISse/gxxgW35XKDD0zitys4cISYyidQxzf SKf9oRyVwvAn3ZyLYSW7xJraROd8dfe2Xs8XiKvnt67Wn5GDfmX4YGE2KegrnSjpRVTU aet5NfSaA59IY/Ke1KwC8Okjn8ZAwkv+4PusIbmc1EwO4K6LrhhJs2vSJEGskdaL/Hij esifeDRuhCfaMn/BAMVjopUldrFl8lZfQDd6ODyY5bMu+i8lLt20PCbczCBFuUx4pDYC fDH8umU3KRYc4XuaN28NC24UBwxmp/yVe6Oiaq754kPERH1yEHwgIUNrf8Or53GZ+xeU VILQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=vSWNFXAs4M/DWREY2MSfBPpT1M2qhtryqFD36VrJN3g=; b=bIi56PhJf3iF4uov13GMjWXkbFBJnenUMEJPg8X3c2P5IyHdh9PHmHD0YmDyrVZ+Q+ tO3ZzowJJORZwBDXwXhMXwdLd3UrzzD+NWGFJ+IcMktyc5PoQaqaKheGFbuufxKjfbHC 8M+AyBxBZwpAiaoKuFJ+sSQOVMZ9iCCy0sYKBWYi6XEI+lh1nre1tbQjW4z/0NsDKp79 UYwDTddCqnI8oKXdaNNUI9qG18PP0p7Tn8KJIYNOGXHNwCY1xxb8J9UBsl9/BdsvQap+ IxlfMOe3CwsIFtbHDjwkeMro9dKU7w4Ug6qSa9m1S69Mki7KELM0otnku1528dM5kG4V 5oJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YF+0kfmQ; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 21si10306030wmw.118.2019.01.14.06.36.52; Mon, 14 Jan 2019 06:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YF+0kfmQ; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4EF04266834; Mon, 14 Jan 2019 15:36:51 +0100 (CET) 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 E5B7A266860; Mon, 14 Jan 2019 15:36:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by alsa0.perex.cz (Postfix) with ESMTP id B556F26680F for ; Mon, 14 Jan 2019 15:36:46 +0100 (CET) Received: by mail-wm1-f67.google.com with SMTP id a62so9148581wmh.4 for ; Mon, 14 Jan 2019 06:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tVdS8xsIyIm1uSMQrbNGsNFsCBodDt8Qk7z3WenhJL4=; b=YF+0kfmQcuXdV6UcaHGP3UztwkZpZz7ghd+qEdhVPpqYMbdLNgWx/afjPVTu40AcT+ IjcjlNgsd+CIZFMVTovCOzOE9tVSTNcT/FpAm/jNb9+ToMQMYrEumEyiRX7wbsSHnru2 nc3Qs9ukT2G3dYvctaxY34rvhIXmidmMqmECI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tVdS8xsIyIm1uSMQrbNGsNFsCBodDt8Qk7z3WenhJL4=; b=SdAMIrlcd8Mudv95xFbPQmp+Ikt8inMiMqpYK3PybTIAVCUha328eh3nK0jks2KBjE iB3x7tJMStyrlbboTthzk1onJ4KgoZsp3/121dze2zw5+uHXZLxYtKgNmijzu2u39XMx l29Gtec+oqSNz6zgncbTUzCbDirYOCSgo4c6Jut0fouvIREGrPTVfopO6i1Q+t4i1HZs H/AzdmMfNtVviycZZCz5KtmEqz6GEySX8ZzmHIEPQcmkZsPcIANpBydPX6JH0rvyXPng Utdsi3lLU7iFpTYxSg6bqHRWU5oieAQQyv1yKBqWWUqAJjikBm0IcQFVo+1zat47GXAK 4yEQ== X-Gm-Message-State: AJcUukdVNjenbGwPSomwunZO+hmElxYkibyM64TJsLYzAWxWleFfz12Q 0V5/ldosi9JFAp6ffVvhE7wPsg== X-Received: by 2002:a1c:e1d5:: with SMTP id y204mr12047842wmg.65.1547476606169; Mon, 14 Jan 2019 06:36:46 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id y34sm201624897wrd.68.2019.01.14.06.36.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jan 2019 06:36:45 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Date: Mon, 14 Jan 2019 14:36:40 +0000 Message-Id: <20190114143640.28333-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , lgirdwood@gmail.com Subject: [alsa-devel] [PATCH] ASoC: msm8916-wcd-digital: remove few unused variables 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org This patch removes unused variables which also fixes below warnings: msm8916-wcd-digital.c:245:30: warning: 'rx2_mix2_inp1_chain_enum' defined but not used [-Wunused-const-variable=] static const struct soc_enum rx2_mix2_inp1_chain_enum = SOC_ENUM_SINGLE( ^~~~~~~~~~~~~~~~~~~~~~~~ msm8916-wcd-digital.c:234:30: warning: 'rx_mix2_inp1_chain_enum' defined but not used [-Wunused-const-variable=] static const struct soc_enum rx_mix2_inp1_chain_enum = SOC_ENUM_SINGLE( ^~~~~~~~~~~~~~~~~~~~~~~ msm8916-wcd-digital.c:224:26: warning: 'adc2_mux_text' defined but not used [-Wunused-const-variable=] static const char *const adc2_mux_text[] = { "ZERO", "INP2", "INP3" }; ^~~~~~~~~~~~~ msm8916-wcd-digital.c:223:26: warning: 'rx_mix2_text' defined but not used [-Wunused-const-variable=] Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/msm8916-wcd-digital.c | 10 ---------- 1 file changed, 10 deletions(-) -- 2.20.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/msm8916-wcd-digital.c b/sound/soc/codecs/msm8916-wcd-digital.c index 3063dedd21cf..423bfebabed4 100644 --- a/sound/soc/codecs/msm8916-wcd-digital.c +++ b/sound/soc/codecs/msm8916-wcd-digital.c @@ -220,8 +220,6 @@ static const char *const dec_mux_text[] = { }; static const char *const cic_mux_text[] = { "AMIC", "DMIC" }; -static const char *const rx_mix2_text[] = { "ZERO", "IIR1", "IIR2" }; -static const char *const adc2_mux_text[] = { "ZERO", "INP2", "INP3" }; /* RX1 MIX1 */ static const struct soc_enum rx_mix1_inp_enum[] = { @@ -230,10 +228,6 @@ static const struct soc_enum rx_mix1_inp_enum[] = { SOC_ENUM_SINGLE(LPASS_CDC_CONN_RX1_B2_CTL, 0, 6, rx_mix1_text), }; -/* RX1 MIX2 */ -static const struct soc_enum rx_mix2_inp1_chain_enum = SOC_ENUM_SINGLE( - LPASS_CDC_CONN_RX1_B3_CTL, 0, 3, rx_mix2_text); - /* RX2 MIX1 */ static const struct soc_enum rx2_mix1_inp_enum[] = { SOC_ENUM_SINGLE(LPASS_CDC_CONN_RX2_B1_CTL, 0, 6, rx_mix1_text), @@ -241,10 +235,6 @@ static const struct soc_enum rx2_mix1_inp_enum[] = { SOC_ENUM_SINGLE(LPASS_CDC_CONN_RX2_B2_CTL, 0, 6, rx_mix1_text), }; -/* RX2 MIX2 */ -static const struct soc_enum rx2_mix2_inp1_chain_enum = SOC_ENUM_SINGLE( - LPASS_CDC_CONN_RX2_B3_CTL, 0, 3, rx_mix2_text); - /* RX3 MIX1 */ static const struct soc_enum rx3_mix1_inp_enum[] = { SOC_ENUM_SINGLE(LPASS_CDC_CONN_RX3_B1_CTL, 0, 6, rx_mix1_text),