mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] MAX7301 GPIO: Do not force SPI speed when using OF Platform
@ 2013-03-22 12:10 Christophe Leroy
  2013-03-27 13:10 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Leroy @ 2013-03-22 12:10 UTC (permalink / raw)
  To: Grant Likely, Linus Walleij; +Cc: linux-kernel, Patrick Vasseur

The bit_per_word can be set in the OF Device tree, so no need to force it as with
the platform_data when using OF Platform

Signed-off-by: Patrick Vasseur <patrick.vasseur@c-s.fr>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>

diff -ur linux-3.8.4/drivers/gpio/gpio-max7301.c linux/drivers/gpio/gpio-max7301.c
--- linux-3.8.4/drivers/gpio/gpio-max7301.c	2013-03-20 21:11:19.000000000 +0100
+++ linux/drivers/gpio/gpio-max7301.c	2013-03-16 10:27:30.000000000 +0100
@@ -56,7 +56,8 @@
 	int ret;
 
 	/* bits_per_word cannot be configured in platform data */
-	spi->bits_per_word = 16;
+	if (spi->dev.platform_data)
+		spi->bits_per_word = 16;
 	ret = spi_setup(spi);
 	if (ret < 0)
 		return ret;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-27 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22 12:10 [PATCH] MAX7301 GPIO: Do not force SPI speed when using OF Platform Christophe Leroy
2013-03-27 13:10 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®