lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201304050751.02172.larsi@wh2.tu-dresden.de>
Date:	Fri, 5 Apr 2013 07:51:01 +0200
From:	Lars Poeschel <larsi@....tu-dresden.de>
To:	Linus Walleij <linus.walleij@...aro.org>
Cc:	Lars Poeschel <poeschel@...onage.de>,
	Grant Likely <grant.likely@...retlab.ca>,
	Rob Herring <rob.herring@...xeda.com>,
	Rob Landley <rob@...dley.net>,
	"devicetree-discuss@...ts.ozlabs.org" 
	<devicetree-discuss@...ts.ozlabs.org>,
	"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	spi mailing list <spi-devel-general@...ts.sourceforge.net>,
	Peter Korsgaard <jacmet@...site.dk>,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>
Subject: Re: [PATCH v4] gpio: mcp23s08: convert driver to DT

On Thursday 04 April 2013 15:44:08 Linus Walleij wrote:
> On Thu, Apr 4, 2013 at 12:02 PM, Lars Poeschel <larsi@....tu-dresden.de> 
wrote:
> > From: Lars Poeschel <poeschel@...onage.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@...onage.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ