[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OS0PR01MB592259ECE2542EC0A680B63986E5A@OS0PR01MB5922.jpnprd01.prod.outlook.com>
Date: Thu, 31 Aug 2023 14:13:50 +0000
From: Biju Das <biju.das.jz@...renesas.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
CC: Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v2] ASoC: ak4642: Simplify probe()
Hi Andy,
> Subject: Re: [PATCH v2] ASoC: ak4642: Simplify probe()
>
> On Tue, Aug 29, 2023 at 06:02:51PM +0000, Biju Das wrote:
> > > On Mon, Aug 28, 2023 at 07:00:03PM +0100, Biju Das wrote:
>
> ...
>
> > > > - if (np) {
> > > > - const struct of_device_id *of_id;
> > > > -
> > >
> > > > + if (dev_fwnode(dev)) {
> > >
> > > Why do we need this at all?
> > It is replacement for np.
>
> I am questioning it's necessity to begin with (even before your patch).
OK, I will make separate patch as precursor to this one
if (dev_fwnode(dev)) {
mcko = ak4642_of_parse_mcko(dev);
if (IS_ERR(mcko))
mcko = NULL;
}
Cheers,
Biju
>
> > > > mcko = ak4642_of_parse_mcko(dev);
> > > > if (IS_ERR(mcko))
> > > > mcko = NULL;
> > >
> > > This can suffice on its own, right?
> > >
> > > Can be done in a separate change as a precursor to this one.
> >
> > Agreed.
>
> --
> With Best Regards,
> Andy Shevchenko
>
Powered by blists - more mailing lists