Move platform depended code (gpio handling) from
drivers/usb/gadget/pxa2xx_udc.h to asm/arch-pxa/udc.h.

Patch against linux-2.6.19-rc6

Signed-off-by: Milan Svoboda <[EMAIL PROTECTED]>
---

diff -uprN -X orig/Documentation/dontdiff orig/drivers/usb/gadget/pxa2xx_udc.h 
usb_device_step/drivers/usb/gadget/pxa2xx_udc.h
--- orig/drivers/usb/gadget/pxa2xx_udc.h        2006-11-27 12:27:20.000000000 
+0000
+++ usb_device_step/drivers/usb/gadget/pxa2xx_udc.h     2006-11-28 
09:21:05.000000000 +0000
@@ -177,21 +177,6 @@ struct pxa2xx_udc {
 
 static struct pxa2xx_udc *the_controller;
 
-static inline int pxa_gpio_get(unsigned gpio)
-{
-       return (GPLR(gpio) & GPIO_bit(gpio)) != 0;
-}
-
-static inline void pxa_gpio_set(unsigned gpio, int is_on)
-{
-       int mask = GPIO_bit(gpio);
-
-       if (is_on)
-               GPSR(gpio) = mask;
-       else
-               GPCR(gpio) = mask;
-}
-
 /*-------------------------------------------------------------------------*/
 
 /*
diff -uprN -X orig/Documentation/dontdiff orig/include/asm-arm/arch-pxa/udc.h 
usb_device_step/include/asm-arm/arch-pxa/udc.h
--- orig/include/asm-arm/arch-pxa/udc.h 2006-11-27 12:27:22.000000000 +0000
+++ usb_device_step/include/asm-arm/arch-pxa/udc.h      2006-11-28 
09:21:03.000000000 +0000
@@ -24,3 +24,18 @@ struct pxa2xx_udc_mach_info {
 
 extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info);
 
+static inline int pxa_gpio_get(unsigned gpio)
+{
+       return (GPLR(gpio) & GPIO_bit(gpio)) != 0;
+}
+
+static inline void pxa_gpio_set(unsigned gpio, int is_on)
+{
+       int mask = GPIO_bit(gpio);
+
+       if (is_on)
+               GPSR(gpio) = mask;
+       else
+               GPCR(gpio) = mask;
+}
+
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to