From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolin Chen Subject: Re: [alsa-devel] [PATCH v2 1/3] ASoC: fsl_audmix: remove "model" attribute Date: Tue, 9 Apr 2019 23:37:14 -0700 Message-ID: <20190410063714.GA4156@Asurada> References: <1554809242-27475-1-git-send-email-viorel.suman@nxp.com> <1554809242-27475-2-git-send-email-viorel.suman@nxp.com> <20190410042906.GC3032@Asurada> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Daniel Baluta Cc: Viorel Suman , Mark Rutland , "devicetree@vger.kernel.org" , "alsa-devel@alsa-project.org" , "linuxppc-dev@lists.ozlabs.org" , Timur Tabi , Xiubo Li , Shawn Guo , Sascha Hauer , Takashi Iwai , Liam Girdwood , Rob Herring , Viorel Suman , Julia Lawall , Mark Brown , dl-linux-imx , Pengutronix Kernel Team , Fabio Estevam "linux-kernel@vger.kernel.org" List-Id: devicetree@vger.kernel.org On Wed, Apr 10, 2019 at 09:20:29AM +0300, Daniel Baluta wrote: > Hi Nicolin, > > On Wed, Apr 10, 2019 at 7:30 AM Nicolin Chen wrote: > > > > On Tue, Apr 09, 2019 at 11:27:39AM +0000, Viorel Suman wrote: > > > Use "of_device_id.data" to specify the machine driver > > > instead of "model" DTS attribute. > > > > > > Signed-off-by: Viorel Suman > > > > Acked-by: Nicolin Chen > > > > > --- > > > sound/soc/fsl/fsl_audmix.c | 43 +++++++++++++++++++++++-------------------- > > > 1 file changed, 23 insertions(+), 20 deletions(-) > > > > > + priv->pdev = platform_device_register_data(&pdev->dev, mdrv, 0, NULL, > > > + 0); > > > > Would you please send a separate patch to replace "pdev->dev"? > > I am not sure exactly how to explain this change in the commit message. It does > make code easier to read and avoids dereferencing pdev pointer each time. > > Is it enough for commit description? You mean this? https://lore.kernel.org/patchwork/patch/862610/