From patchwork Tue Apr 22 11:23:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 4031131 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 495319F1F4 for ; Tue, 22 Apr 2014 11:24:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E08C4201DD for ; Tue, 22 Apr 2014 11:24:42 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 4A2152021F for ; Tue, 22 Apr 2014 11:24:38 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 31873265041; Tue, 22 Apr 2014 13:24:37 +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.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id AB6C1261B0E; Tue, 22 Apr 2014 13:23:34 +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 47196261B0B; Tue, 22 Apr 2014 13:23:32 +0200 (CEST) Received: from smtp-out-072.synserver.de (smtp-out-082.synserver.de [212.40.185.82]) by alsa0.perex.cz (Postfix) with ESMTP id 5D3D8261ABB for ; Tue, 22 Apr 2014 13:23:23 +0200 (CEST) Received: (qmail 7899 invoked by uid 0); 22 Apr 2014 11:23:23 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 7612 Received: from p4fe61f8c.dip0.t-ipconnect.de (HELO lars-adi-laptop.analog.com) [79.230.31.140] by 217.119.54.81 with SMTP; 22 Apr 2014 11:23:22 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Tue, 22 Apr 2014 13:23:15 +0200 Message-Id: <1398165797-22997-4-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1398165797-22997-1-git-send-email-lars@metafoo.de> References: <1398165797-22997-1-git-send-email-lars@metafoo.de> Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen Subject: [alsa-devel] [PATCH v4 3/5] ASoC: Remove snd_soc_update_bits_locked() 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 There are no users of snd_soc_update_bits_locked() left and it is identical to snd_soc_update_bits(). So it can be removed. Signed-off-by: Lars-Peter Clausen --- sound/soc/soc-io.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c index ac64fd7..2ead9ed 100644 --- a/sound/soc/soc-io.c +++ b/sound/soc/soc-io.c @@ -241,26 +241,6 @@ int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned int reg, EXPORT_SYMBOL_GPL(snd_soc_update_bits); /** - * snd_soc_update_bits_locked - update codec register bits - * @codec: audio codec - * @reg: codec register - * @mask: register mask - * @value: new value - * - * Writes new register value, and takes the codec mutex. - * - * Returns 1 for change else 0. - */ -int snd_soc_update_bits_locked(struct snd_soc_codec *codec, - unsigned int reg, unsigned int mask, - unsigned int value) -{ - return snd_soc_component_update_bits(&codec->component, reg, mask, - value); -} -EXPORT_SYMBOL_GPL(snd_soc_update_bits_locked); - -/** * snd_soc_test_bits - test register for change * @codec: audio codec * @reg: codec register