aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/max310x.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/platform_data/max310x.h b/include/linux/platform_data/max310x.h
index 9d5f69b2b57c..57a0cd46b847 100644
--- a/include/linux/platform_data/max310x.h
+++ b/include/linux/platform_data/max310x.h
@@ -20,9 +20,7 @@
20 * Example board initialization data: 20 * Example board initialization data:
21 * 21 *
22 * static struct max310x_pdata max3107_pdata = { 22 * static struct max310x_pdata max3107_pdata = {
23 * .driver_flags = MAX310X_EXT_CLK,
24 * .uart_flags[0] = MAX310X_ECHO_SUPRESS | MAX310X_AUTO_DIR_CTRL, 23 * .uart_flags[0] = MAX310X_ECHO_SUPRESS | MAX310X_AUTO_DIR_CTRL,
25 * .frequency = 3686400,
26 * .gpio_base = -1, 24 * .gpio_base = -1,
27 * }; 25 * };
28 * 26 *
@@ -41,17 +39,12 @@
41 39
42/* MAX310X platform data structure */ 40/* MAX310X platform data structure */
43struct max310x_pdata { 41struct max310x_pdata {
44 /* Flags global to driver */
45 const u8 driver_flags;
46#define MAX310X_EXT_CLK (0x00000001) /* External clock enable */
47 /* Flags global to UART port */ 42 /* Flags global to UART port */
48 const u8 uart_flags[MAX310X_MAX_UARTS]; 43 const u8 uart_flags[MAX310X_MAX_UARTS];
49#define MAX310X_ECHO_SUPRESS (0x00000002) /* Enable echo supress */ 44#define MAX310X_ECHO_SUPRESS (0x00000002) /* Enable echo supress */
50#define MAX310X_AUTO_DIR_CTRL (0x00000004) /* Enable Auto direction 45#define MAX310X_AUTO_DIR_CTRL (0x00000004) /* Enable Auto direction
51 * control (RS-485) 46 * control (RS-485)
52 */ 47 */
53 /* Frequency (extrenal clock or crystal) */
54 const int frequency;
55 /* GPIO base number (can be negative) */ 48 /* GPIO base number (can be negative) */
56 const int gpio_base; 49 const int gpio_base;
57}; 50};