1
2 #ifndef LINUX_SPI_MAX7301_H
3 #define LINUX_SPI_MAX7301_H
4
5 #include <linux/gpio.h>
6
7
8
9
10
11 struct max7301 {
12 struct mutex lock;
13 u8 port_config[8];
14 u32 out_level;
15 u32 input_pullup_active;
16 struct gpio_chip chip;
17 struct device *dev;
18 int (*write)(struct device *dev, unsigned int reg, unsigned int val);
19 int (*read)(struct device *dev, unsigned int reg);
20 };
21
22 struct max7301_platform_data {
23
24 unsigned base;
25
26
27
28
29
30
31 u32 input_pullup_active;
32 };
33
34 extern int __max730x_remove(struct device *dev);
35 extern int __max730x_probe(struct max7301 *ts);
36 #endif