lkml.org 
[lkml]   [2013]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4] gpio: mcp23s08: convert driver to DT
Date
On Thursday 04 April 2013 15:44:08 Linus Walleij wrote:
> On Thu, Apr 4, 2013 at 12:02 PM, Lars Poeschel <larsi@wh2.tu-dresden.de>
wrote:
> > From: Lars Poeschel <poeschel@lemonage.de>
> >
> > This converts the mcp23s08 driver to be able to be used with device
> > tree.
> > There is a "spi-present-mask" device tree property, that allows to
> > use multiple of this spi chips on the same chipselect.
> >
> > Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
> > ---
> > v4:
> > - removed the ability to specify the pullup from device tree
> > - updated binding doc
>
> (...)
>
> > @@ -668,6 +742,7 @@ static struct spi_driver mcp23s08_driver = {
> >
> > .driver = {
> >
> > .name = "mcp23s08",
> > .owner = THIS_MODULE,
> >
> > + .of_match_table = of_match_ptr(mcp23s08_spi_of_match),
>
> Will this compile if CONFIG_OF is not enabled?

Yes, of_match_ptr(blah) after preprocessing gets NULL then.

Regards,
Lars


\
 
 \ /
  Last update: 2013-04-05 08:21    [W:0.355 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site