Skip to content

Commit

Permalink
ARM: move udc_pxa2xx.h to linux/platform_data
Browse files Browse the repository at this point in the history
Move the PXA2xx/IXP4xx UDC header file into linux/platform_data as it
only contains a driver platform data structure.

Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Nov 16, 2012
1 parent 6920b5a commit 4600006
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp4xx/include/mach/udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* arch/arm/mach-ixp4xx/include/mach/udc.h
*
*/
#include <asm/mach/udc_pxa2xx.h>
#include <linux/platform_data/pxa2xx_udc.h>

extern void ixp4xx_set_udc_info(struct pxa2xx_udc_mach_info *info);

2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/include/mach/udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* arch/arm/mach-pxa/include/mach/udc.h
*
*/
#include <asm/mach/udc_pxa2xx.h>
#include <linux/platform_data/pxa2xx_udc.h>

extern void pxa_set_udc_info(struct pxa2xx_udc_mach_info *info);

4 changes: 1 addition & 3 deletions drivers/usb/gadget/pxa25x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/platform_data/pxa2xx_udc.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/irq.h>
Expand Down Expand Up @@ -59,9 +60,6 @@
#include <mach/lubbock.h>
#endif

#include <asm/mach/udc_pxa2xx.h>


/*
* This driver handles the USB Device Controller (UDC) in Intel's PXA 25x
* series processors. The UDC for the IXP 4xx series is very similar.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* arch/arm/include/asm/mach/udc_pxa2xx.h
*
* This supports machine-specific differences in how the PXA2xx
* USB Device Controller (UDC) is wired.
*
* It is set in linux/arch/arm/mach-pxa/<machine>.c or in
* linux/arch/mach-ixp4xx/<machine>.c and used in
* the probe routine of linux/drivers/usb/gadget/pxa2xx_udc.c
*/
#ifndef PXA2XX_UDC_H
#define PXA2XX_UDC_H

struct pxa2xx_udc_mach_info {
int (*udc_is_connected)(void); /* do we see host? */
Expand All @@ -24,3 +24,4 @@ struct pxa2xx_udc_mach_info {
int gpio_pullup; /* high == pullup activated */
};

#endif

0 comments on commit 4600006

Please sign in to comment.