Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbaLYKMv (ORCPT ); Thu, 25 Dec 2014 05:12:51 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60442 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154AbaLYKMu (ORCPT ); Thu, 25 Dec 2014 05:12:50 -0500 Date: Thu, 25 Dec 2014 11:12:49 +0100 Message-ID: From: Takashi Iwai To: Rickard Strandqvist Cc: Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound: pci: ice1712: wm8776.c: Remove some unused functions In-Reply-To: <1419093962-8789-1-git-send-email-rickard_strandqvist@spectrumdigital.se> References: <1419093962-8789-1-git-send-email-rickard_strandqvist@spectrumdigital.se> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Sat, 20 Dec 2014 17:46:02 +0100, Rickard Strandqvist wrote: > > Removes some functions that are not used anywhere: > snd_wm8776_set_master_mode() snd_wm8776_set_adc_if() snd_wm8776_set_dac_if() > > This was partially found by using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Thanks, applied. Takashi > --- > sound/pci/ice1712/wm8776.c | 15 --------------- > sound/pci/ice1712/wm8776.h | 3 --- > 2 files changed, 18 deletions(-) > > diff --git a/sound/pci/ice1712/wm8776.c b/sound/pci/ice1712/wm8776.c > index e66c0da..ebd2fe4 100644 > --- a/sound/pci/ice1712/wm8776.c > +++ b/sound/pci/ice1712/wm8776.c > @@ -452,21 +452,6 @@ void snd_wm8776_resume(struct snd_wm8776 *wm) > snd_wm8776_write(wm, i, wm->regs[i]); > } > > -void snd_wm8776_set_dac_if(struct snd_wm8776 *wm, u16 dac) > -{ > - snd_wm8776_write(wm, WM8776_REG_DACIFCTRL, dac); > -} > - > -void snd_wm8776_set_adc_if(struct snd_wm8776 *wm, u16 adc) > -{ > - snd_wm8776_write(wm, WM8776_REG_ADCIFCTRL, adc); > -} > - > -void snd_wm8776_set_master_mode(struct snd_wm8776 *wm, u16 mode) > -{ > - snd_wm8776_write(wm, WM8776_REG_MSTRCTRL, mode); > -} > - > void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power) > { > snd_wm8776_write(wm, WM8776_REG_PWRDOWN, power); > diff --git a/sound/pci/ice1712/wm8776.h b/sound/pci/ice1712/wm8776.h > index 93a2d69..42acef0 100644 > --- a/sound/pci/ice1712/wm8776.h > +++ b/sound/pci/ice1712/wm8776.h > @@ -216,9 +216,6 @@ struct snd_wm8776 { > > void snd_wm8776_init(struct snd_wm8776 *wm); > void snd_wm8776_resume(struct snd_wm8776 *wm); > -void snd_wm8776_set_dac_if(struct snd_wm8776 *wm, u16 dac); > -void snd_wm8776_set_adc_if(struct snd_wm8776 *wm, u16 adc); > -void snd_wm8776_set_master_mode(struct snd_wm8776 *wm, u16 mode); > void snd_wm8776_set_power(struct snd_wm8776 *wm, u16 power); > void snd_wm8776_volume_restore(struct snd_wm8776 *wm); > int snd_wm8776_build_controls(struct snd_wm8776 *wm); > -- > 1.7.10.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/