From patchwork Mon Dec 4 18:49:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 120585 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp1238626edb; Mon, 4 Dec 2017 10:51:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMYBkfSSyWqYjFkIwty+u7pd41vFWTLAeJwtkgiFA+aS3dbKc/c6StkniEICY43jn6BKbtoC X-Received: by 10.223.196.189 with SMTP id m58mr11202937wrf.7.1512413477752; Mon, 04 Dec 2017 10:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512413477; cv=none; d=google.com; s=arc-20160816; b=oVJNcr5hsIw45jG6RfhPkYcBnCLW9NnEwXLbyqqLgQCswOoc39VnPP7WKa52OLPYDp RnhgIi6cadhFCw5JzCA+0b8OVB/7z8D+SBvDZTgBHoelpGMaeCZIdcob+7g0/ebQEpET 7TMG8+CU3U99USpk7fSV13cisXYYVDJcVRoysxWqyfEeN1bEuYx8Wo7K/jcjDladtDx5 ZFX9PAMEwkG5cf0q9NsN8TjTm1IZgFwvBKCRiqxNDxip9Iw+BOFH1EHvZq2RfjeX/BYU no/fxWPVzY05RUtsfXxvd6xBYgmCr/iaBvyI/Kqs6v9CqHM8pwH4w7jANVYcB7a4rF65 nZcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=uAnBjoYcXX5nmFjEimyUafbg7xiyKwVuEf5QpVXCNJw=; b=YibxxpFH/RAlAE8fKYAjfDyPlfgZcvb+dEZsOmLqfLtGprvugr6cajRtWdCfvwqziY 5NOLmnL+soE/BKTiboSH7BVo5GOgXhL/1TdBP62G9WAWAg90seSHAwSGe+ht3tnCm51I GQU33yf6zwz+bngC2B80Je41H/OU7qRvCcjo4yZlmqfWUoSoSA1YyyUxhA82qaV1WYXv WbrJAX9oQxuNmIQKVlWiVLkhEYD+3d6bepnzuS4YKiwHVckGZECcQQYaimHuQZkLqLU2 OR2SZ8EwZALEKiogKXkI++yYoVF5p8giH9k4/kMROiUc6PR4YnwQsVXpJeBHmZTHGoHj OtbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=bV+8F8Hg; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id s81si5490776wma.42.2017.12.04.10.51.17; Mon, 04 Dec 2017 10:51:17 -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=@sirena.org.uk header.s=20170815-heliosphere header.b=bV+8F8Hg; 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 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C0981267614; Mon, 4 Dec 2017 19:49:47 +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 3FF0826766E; Mon, 4 Dec 2017 19:49:46 +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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id A21CD2675E7 for ; Mon, 4 Dec 2017 19:49:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ryj+NmXLYJDZ0iyPZwT/XnPZtzHveihlUT1oHYUUACU=; b=bV+8F8HgzxHx W8JENv62g7rD5yNqYEO1s69O2+srcp1UD5JY+l+tJR07838CAehKliJFNnwaevgfl7bom0s36IvYF 50Jr0yAYcgaOaUj9AX2s5ZVLr50hFWa7I1CJMANXPb/u4IoUaS6uVZb1bAiyluOPsfwVpRf0qo35R iZngY=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLvnv-0000Pt-DB; Mon, 04 Dec 2017 18:49:23 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eLvnu-0000TP-Vx; Mon, 04 Dec 2017 18:49:23 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87efrrkl7q.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Mon, 04 Dec 2017 18:49:22 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown , Lars-Peter Subject: [alsa-devel] Applied "ASoC: use snd_soc_component_init_regmap() on atmel-classd" to the asoc tree 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 The patch ASoC: use snd_soc_component_init_regmap() on atmel-classd has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 4b952275d2e7c6b32671a121ea5303a467bf2a0f Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 28 Nov 2017 06:06:44 +0000 Subject: [PATCH] ASoC: use snd_soc_component_init_regmap() on atmel-classd To setup regmap, ALSA SoC has snd_soc_component_init_regmap() and .get_regmap. But these are duplicated feature. This driver is using .get_regmap and set regmap by using dev_get_regmap(), but it is automatically done by snd_soc_component_add_unlocked(). let's remove .get_regmap. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/atmel/atmel-classd.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 8445edd06737..ebabed69f0e6 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -308,15 +308,9 @@ static int atmel_classd_codec_resume(struct snd_soc_codec *codec) return regcache_sync(dd->regmap); } -static struct regmap *atmel_classd_codec_get_remap(struct device *dev) -{ - return dev_get_regmap(dev, NULL); -} - static struct snd_soc_codec_driver soc_codec_dev_classd = { .probe = atmel_classd_codec_probe, .resume = atmel_classd_codec_resume, - .get_regmap = atmel_classd_codec_get_remap, .component_driver = { .controls = atmel_classd_snd_controls, .num_controls = ARRAY_SIZE(atmel_classd_snd_controls),