Thread (3 messages) 3 messages, 2 authors, 2009-11-12

Re: [PATCH 1/8] pxa: support pxa168 LCD controller SPI operation

flat view
DORMANTno replies

From: Russell King - ARM Linux <hidden>
Date: 2009-11-12 22:17:53
Also in: linux-arm-kernel

On Thu, Nov 12, 2009 at 10:16:16AM +0800, Jun Nie wrote:
quoted hunk ↗ jump to hunk
diff --git a/drivers/video/pxa168fb.c b/drivers/video/pxa168fb.c
index 84d8327..e1f1c5f 100644
--- a/drivers/video/pxa168fb.c
+++ b/drivers/video/pxa168fb.c
@@ -27,12 +27,90 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/uaccess.h>
+#include <linux/gpio.h>
 #include <video/pxa168fb.h>
 
+#include <mach/gpio.h>
If you include linux/gpio.h, then if the right configuration symbol
(CONFIG_GENERIC_GPIO) is selected, asm/gpio.h and therefore mach/gpio.h
will be included for you.
quoted hunk ↗ jump to hunk
+static inline void spi_gpio_assert(int spi_gpio_cs, int val)
+{
+	       if (gpio_is_valid(spi_gpio_cs))
+		                      gpio_set_value(spi_gpio_cs, val);
This seems to have style problems - please run it through checkpatch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help