[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191030083544.GG5017@valkosipuli.retiisi.org.uk>
Date: Wed, 30 Oct 2019 10:35:44 +0200
From: Sakari Ailus <sakari.ailus@....fi>
To: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Cc: mchehab@...nel.org, robh+dt@...nel.org,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
c.barrett@...mos.com, a.brela@...mos.com, peter.griffin@...aro.org
Subject: Re: [PATCH v3 2/2] media: i2c: Add IMX296 CMOS image sensor driver
On Wed, Oct 30, 2019 at 11:56:34AM +0530, Manivannan Sadhasivam wrote:
> Hi Sakari,
>
> Thanks for the review!
You're welcome!
>
> On Tue, Oct 29, 2019 at 02:13:20PM +0200, Sakari Ailus wrote:
> > Hi Manivannan,
> >
> > On Fri, Oct 25, 2019 at 11:29:08PM +0530, Manivannan Sadhasivam wrote:
...
> > > +static struct i2c_driver imx296_i2c_driver = {
> > > + .probe_new = imx296_probe,
> > > + .remove = imx296_remove,
> > > + .driver = {
> > > + .name = "imx296",
> > > + .pm = &imx296_pm_ops,
> > > + .of_match_table = of_match_ptr(imx296_of_match),
> >
> > No need for of_match_ptr here.
> >
>
> AFAIK, of_match_ptr is needed for !OF case. Else we need to manually add
> #ifdef clut to make it NULL. Does the situation changed now?
ACPI based systems can also make use of the compatible string for matching
drivers with devices through of_match_table. This may sometimes be the most
practical approach. I.e. you don't need ifdefs either.
--
Regards,
Sakari Ailus
Powered by blists - more mailing lists