Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6734224yba; Wed, 1 May 2019 19:20:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA+PNd8f0V0q2BgpGoxiqS9bBIN1qOqALBGqa7IS/6uYX/ngR8VwOrALvFYhjDP3e77uCe X-Received: by 2002:a62:ed10:: with SMTP id u16mr1250626pfh.187.1556763648393; Wed, 01 May 2019 19:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763648; cv=none; d=google.com; s=arc-20160816; b=wETnWX6ixSTwvDgvsNMEvuM0aCCu5Upx/ZhVxwqFWlkgO6J9TgU5aBSKCzRh3ncVt7 1WGMHan7qQY/+jfs8lxP7n9Ua8OJ33y5wfUcSa9Hb4y7lliesfI1ZuBvLcqT0wYkkrEw SMSktrjhr2gUDluquagS6Oi/Rp/Lp/L8hazeCQCZvgxAJwPWJXNJzaEsq4TO4nwjfvd3 OEz8W0k5j6Zy68Qs7Tko9fTj9XZK8JuFcwaEFz993LJI7cJbaAD73xZryHuhkNrchuID ZWW5xEK+ij9lXYb4me+rompMAVoXH+RndvaiuuyAN7tXscfVgJhTVzTpaWavg/6mp40e TwGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=JSlPcUnFqX1tN5EF+WG+3VLibdvupztBzoEMjhd4pBY=; b=RRRla3SouMnjKYsrGb8nISc4rn1XpZtvlitH/rbyQW0/iE9tosCoJpmTVg40975qlR A6hW2q+G8UY5tx8la5t+xgRbLVcN2DJwNgL/WDl5pm91SVYN0uyBlMspRCsWM1wkXO4i lhUzT1/byYpoZtJaKXRGgoWMTDXqQCgeI2DMX1oGL0qItGX+MRb1uqyiJvFykEJ14wKs eTOhsucR0KB2MRq/qDqtPAmp8gmgWXp/V5KtUaPfoO/wyYFl8QvtXBPYCLKgoGMtSQbD noU4J1ay4y5kKPePL3PkrbSXhRA/b5sjsGxOSfcKRl7waE9v2sJlev4n/ixitK2e4seR FTeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=g7HBSZHx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si42808301plo.101.2019.05.01.19.20.33; Wed, 01 May 2019 19:20:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=g7HBSZHx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726608AbfEBCTK (ORCPT + 99 others); Wed, 1 May 2019 22:19:10 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56602 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbfEBCTG (ORCPT ); Wed, 1 May 2019 22:19:06 -0400 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=JSlPcUnFqX1tN5EF+WG+3VLibdvupztBzoEMjhd4pBY=; b=g7HBSZHxEi41 FbJOFo6XXTQJJ4jd7ljgytbHAlajKmV+/HndsXkAQtOvo+vHj106e0vJhsG1vuijAWw29aiNl3EzG l/oQinOz18TveSp+rV+4A6u9ko4jCwW9hCw7RotfC5h/NLZMi2ntyWQSGKNgQlD9a849ZiCNpPHal mCKTk=; Received: from [211.55.52.15] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hM1IX-0005qB-G5; Thu, 02 May 2019 02:18:09 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 39C17441D3C; Thu, 2 May 2019 03:18:06 +0100 (BST) From: Mark Brown To: Viorel Suman Cc: alsa-devel@alsa-project.org, "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , dl-linux-imx , Fabio Estevam , Jaroslav Kysela , Julia Lawall , Liam Girdwood , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Mark Brown , Mark Rutland , Nicolin Chen , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Takashi Iwai , Timur Tabi , Viorel Suman , Xiubo Li Subject: Applied "ASoC: fsl_audmix: cache pdev->dev pointer" to the asoc tree In-Reply-To: <1554894380-25153-5-git-send-email-viorel.suman@nxp.com> X-Patchwork-Hint: ignore Message-Id: <20190502021806.39C17441D3C@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:18:06 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: fsl_audmix: cache pdev->dev pointer 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 62be484f7ad8443c393293a415392fbf3190c864 Mon Sep 17 00:00:00 2001 From: Viorel Suman Date: Wed, 10 Apr 2019 11:06:39 +0000 Subject: [PATCH] ASoC: fsl_audmix: cache pdev->dev pointer There should be no trouble to understand dev = pdev->dev. This can save some space to have more print info or save some wrapped lines. Signed-off-by: Viorel Suman Suggested-by: Nicolin Chen Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_audmix.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c index dc802d5c4ccd..3897a54a11fe 100644 --- a/sound/soc/fsl/fsl_audmix.c +++ b/sound/soc/fsl/fsl_audmix.c @@ -456,6 +456,7 @@ MODULE_DEVICE_TABLE(of, fsl_audmix_ids); static int fsl_audmix_probe(struct platform_device *pdev) { + struct device *dev = &pdev->dev; struct fsl_audmix *priv; struct resource *res; const char *mdrv; @@ -463,52 +464,50 @@ static int fsl_audmix_probe(struct platform_device *pdev) void __iomem *regs; int ret; - of_id = of_match_device(fsl_audmix_ids, &pdev->dev); + of_id = of_match_device(fsl_audmix_ids, dev); if (!of_id || !of_id->data) return -EINVAL; mdrv = of_id->data; - priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; /* Get the addresses */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_ioremap_resource(dev, res); if (IS_ERR(regs)) return PTR_ERR(regs); - priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "ipg", regs, + priv->regmap = devm_regmap_init_mmio_clk(dev, "ipg", regs, &fsl_audmix_regmap_config); if (IS_ERR(priv->regmap)) { - dev_err(&pdev->dev, "failed to init regmap\n"); + dev_err(dev, "failed to init regmap\n"); return PTR_ERR(priv->regmap); } - priv->ipg_clk = devm_clk_get(&pdev->dev, "ipg"); + priv->ipg_clk = devm_clk_get(dev, "ipg"); if (IS_ERR(priv->ipg_clk)) { - dev_err(&pdev->dev, "failed to get ipg clock\n"); + dev_err(dev, "failed to get ipg clock\n"); return PTR_ERR(priv->ipg_clk); } platform_set_drvdata(pdev, priv); - pm_runtime_enable(&pdev->dev); + pm_runtime_enable(dev); - ret = devm_snd_soc_register_component(&pdev->dev, &fsl_audmix_component, + ret = devm_snd_soc_register_component(dev, &fsl_audmix_component, fsl_audmix_dai, ARRAY_SIZE(fsl_audmix_dai)); if (ret) { - dev_err(&pdev->dev, "failed to register ASoC DAI\n"); + dev_err(dev, "failed to register ASoC DAI\n"); return ret; } - priv->pdev = platform_device_register_data(&pdev->dev, mdrv, 0, NULL, - 0); + priv->pdev = platform_device_register_data(dev, mdrv, 0, NULL, 0); if (IS_ERR(priv->pdev)) { ret = PTR_ERR(priv->pdev); - dev_err(&pdev->dev, "failed to register platform %s: %d\n", - mdrv, ret); + dev_err(dev, "failed to register platform %s: %d\n", mdrv, ret); } return ret; -- 2.20.1