From patchwork Tue Oct 20 08:56:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7443921 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 1EEBFBEEA4 for ; Tue, 20 Oct 2015 08:56:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC3F520747 for ; Tue, 20 Oct 2015 08:56:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 16EC5206DF for ; Tue, 20 Oct 2015 08:56:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 60C642661B5; Tue, 20 Oct 2015 10:56:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 2F7FC26621A; Tue, 20 Oct 2015 10:56:25 +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 59B64266374; Tue, 20 Oct 2015 10:56:23 +0200 (CEST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by alsa0.perex.cz (Postfix) with ESMTP id 0C7CD2661B5 for ; Tue, 20 Oct 2015 10:56:16 +0200 (CEST) Received: by pabrc13 with SMTP id rc13so15442513pab.0 for ; Tue, 20 Oct 2015 01:56:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=yt1zLvf9H1wAuZZmYPqeN4shxTYHNUyuEO0dWYUiMmw=; b=Jg+PygFcgDSUn73D7ehEH4MxDLVJdgPUt5R9wXJwqUZfvPmV88AxS/BF4IMmL2g0Tc RtXowtMfwnV95Rsqgmiv8p5EHWY67OoIwkgYrUMmzAgo44b8CeAqVoZ+c59YNw8f7ZJ0 OrgliU1ItTxL+xQdal6x07ZJC2C3hXLtH/n45hAQvShjAa0L7DUz25N8invB6n8SD3u1 w2VamcmMXNDHwHYFev4rGwU701f4U8zZwlp+/mTo0fUBCKkhtmTeNPDEyBT2zn4Rd6uE bjtQW3nyCDwrasEJG/s3ii9Nb2V3b3Om+7ceefpd3D8urHf1hGfYlGvzql+DTq+HgBj+ EzOg== X-Gm-Message-State: ALoCoQnFStsrlZqNiNz6BOtT9IwGVzhHfwOsKB+fZlmzsQYhMMc3M2Cr4Vbsx/lUMpVRWeUQUE0c X-Received: by 10.69.8.129 with SMTP id dk1mr2727385pbd.72.1445331375200; Tue, 20 Oct 2015 01:56:15 -0700 (PDT) Received: from phoenix (1-169-149-165.dynamic.hinet.net. [1.169.149.165]) by smtp.gmail.com with ESMTPSA id vl1sm2461990pbc.31.2015.10.20.01.56.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 01:56:14 -0700 (PDT) Message-ID: <1445331371.25880.3.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Tue, 20 Oct 2015 16:56:11 +0800 In-Reply-To: <1445331286.25880.1.camel@ingics.com> References: <1445331286.25880.1.camel@ingics.com> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen , Liam Girdwood Subject: [alsa-devel] [PATCH 2/2] ASoC: ad193x: Drop .volatile_reg implementation 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 X-Virus-Scanned: ClamAV using ClamSMTP adau193x_reg_volatile() always return false. This seems pointless because current code uses REGCACHE_NONE cache_type which is supposed to be volatile. Signed-off-by: Axel Lin Acked-by: Lars-Peter Clausen --- sound/soc/codecs/ad193x.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c index 76d7966..3a3f3f2 100644 --- a/sound/soc/codecs/ad193x.c +++ b/sound/soc/codecs/ad193x.c @@ -418,14 +418,8 @@ static struct snd_soc_codec_driver soc_codec_dev_ad193x = { .num_dapm_routes = ARRAY_SIZE(audio_paths), }; -static bool adau193x_reg_volatile(struct device *dev, unsigned int reg) -{ - return false; -} - const struct regmap_config ad193x_regmap_config = { .max_register = AD193X_NUM_REGS - 1, - .volatile_reg = adau193x_reg_volatile, }; EXPORT_SYMBOL_GPL(ad193x_regmap_config);