Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648365

Re: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused function cht_get_codec_dai()

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Matthias Kaehlcke <mka@chromium.org>
Newsgroups linux.kernel
Subject Re: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused function cht_get_codec_dai()
Date Tue, 23 May 2017 21:40:02 +0200
Message-ID <tKnOW-7FB-5@gated-at.bofh.it> (permalink)
References <tKnlT-7qO-13@gated-at.bofh.it> <tKnFg-7zH-17@gated-at.bofh.it>
X-Original-To Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RcGOaZkn2SE78LCrVdNO4hk0E4r7+Coiyf7cBclynq8=; b=el9ZqR2JEBhZys2iNBwA04Xg3ZJU1Lgyzd82qRcd6/qZMQCpLwOIhXqIAudpPmumBS iLyJ+hVtLe/tnmNFd0FnXwHAX+PecVI6+dI3OE2jG3M0uZXWvU/BU3CdwxUMnprlf4ti XC5La/03hIDGqvhkf1Q8GCJeISNPM1LPrSqlM=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RcGOaZkn2SE78LCrVdNO4hk0E4r7+Coiyf7cBclynq8=; b=PyNmpeAeWqEuSF+4DHy1MrnLEI1gxoa7B3hQpBPRMplTFzLYY2POyTvO+6NYjBFbd/ 3j4DpB/MK3mbbaBzqqArA3dhtpdx3nbJVQFTB0fX2nCDLvxZhoudEzw+TThC/Pg8b5JQ 3NQfLEAu3K1c9uU+u+31tOklh+E3MEpEhe8LBNWRsIIf5a/QMormxHK8EhH1BlJT+2NO hBz+cw4uy4ENAp8lq96ARm1SeJxavued9FuZXqSq0nfTNW7+oP6vnEV9ieS2YuUpsi/m K0UUc5cnbLgvuJX0nA10BAu2/zvcTrxrQMZ8s+QMGnp3qbdyGZOO8yjBA3p2fe0MjiT+ DTcw==
X-Gm-Message-State AODbwcCKy8VTT0pinTgEpSVTAeGv/i1eIvm3gwhyJU7G2yuS+cx3XAVX +VLzz3I04P0mEXQg
X-Received by 10.99.111.133 with SMTP id k127mr15332358pgc.202.1495567960758; Tue, 23 May 2017 12:32:40 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 49
Organization linux.* mail to news gateway
X-Original-Cc Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Yang A Fang <yang.a.fang@intel.com>, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Douglas Anderson <dianders@chromium.org>
X-Original-Date Tue, 23 May 2017 12:32:39 -0700
X-Original-Message-ID <20170523193239.GP141096@google.com>
X-Original-References <20170523190509.59212-1-mka@chromium.org> <6f941eb4-04b9-89ea-a791-c65c939581cf@linux.intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1648365

Show key headers only | View raw


Hi Pierre-Louis,

El Tue, May 23, 2017 at 12:25:17PM -0700 Pierre-Louis Bossart ha dit:

> On 5/23/17 12:05 PM, Matthias Kaehlcke wrote:
> >Looks like the function has never been used since it was added by commit
> >17119a465706 ("ASoC: Intel: Add Cherrytrail & Braswell machine driver
> >cht_bsw_max98090_ti"). Removing it fixes the following warning when
> >building with clang:
> >
> >sound/soc/intel/boards/cht_bsw_max98090_ti.c:42:35: error: unused
> >    function 'cht_get_codec_dai' [-Werror,-Wunused-function]
> 
> Fine but it'll have to be re-added when I finally find the time to
> support Baytrail with this driver.

If you have plans to add the code in a nearish future it is probably
not worth to do the removal, unless the maintainers think otherwise.

> >Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> >---
> > sound/soc/intel/boards/cht_bsw_max98090_ti.c | 12 ------------
> > 1 file changed, 12 deletions(-)
> >
> >diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c
> >index 742bc0d4e681..20755ecc7f9e 100644
> >--- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c
> >+++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c
> >@@ -39,18 +39,6 @@ struct cht_mc_private {
> > 	bool ts3a227e_present;
> > };
> >
> >-static inline struct snd_soc_dai *cht_get_codec_dai(struct snd_soc_card *card)
> >-{
> >-	struct snd_soc_pcm_runtime *rtd;
> >-
> >-	list_for_each_entry(rtd, &card->rtd_list, list) {
> >-		if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI,
> >-			     strlen(CHT_CODEC_DAI)))
> >-			return rtd->codec_dai;
> >-	}
> >-	return NULL;
> >-}
> >-
> > static const struct snd_soc_dapm_widget cht_dapm_widgets[] = {
> > 	SND_SOC_DAPM_HP("Headphone", NULL),
> > 	SND_SOC_DAPM_MIC("Headset Mic", NULL),
> >
> 

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ASoC: cht_bsw_max98090_ti: Remove unused function cht_get_codec_dai() Matthias Kaehlcke <mka@chromium.org> - 2017-05-23 21:10 +0200
  Re: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused  function cht_get_codec_dai() Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> - 2017-05-23 21:30 +0200
    Re: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused  function cht_get_codec_dai() Matthias Kaehlcke <mka@chromium.org> - 2017-05-23 21:40 +0200
      Re: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused  function cht_get_codec_dai() Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> - 2017-05-23 21:50 +0200
  Applied "ASoC: cht_bsw_max98090_ti: Remove unused function cht_get_codec_dai()" to the asoc tree Mark Brown <broonie@kernel.org> - 2017-05-24 19:50 +0200

csiph-web