regulator, mc13xxx: Remove pointless test for unsigned less than zero
[zen-stable.git] / arch / arm / mach-pxa / include / mach / pxa3xx-u2d.h
blob9d82cb65ea56d6417d0960cf455d991729b50aa9
1 /*
2 * PXA3xx U2D header
4 * Copyright (C) 2010 CompuLab Ltd.
6 * Igor Grinberg <grinberg@compulab.co.il>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #ifndef __PXA310_U2D__
13 #define __PXA310_U2D__
15 #include <linux/usb/ulpi.h>
17 struct pxa3xx_u2d_platform_data {
19 #define ULPI_SER_6PIN (1 << 0)
20 #define ULPI_SER_3PIN (1 << 1)
21 unsigned int ulpi_mode;
23 int (*init)(struct device *);
24 void (*exit)(struct device *);
28 /* Start PXA3xx U2D host */
29 int pxa3xx_u2d_start_hc(struct usb_bus *host);
30 /* Stop PXA3xx U2D host */
31 void pxa3xx_u2d_stop_hc(struct usb_bus *host);
33 extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
35 #endif /* __PXA310_U2D__ */