Source
11
11
* This program is distributed in the hope that it will be useful,
12
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
14
* GNU General Public License for more details.
15
15
*/
16
16
17
17
#include <linux/kernel.h>
18
18
#include <linux/init.h>
19
19
#include <linux/slab.h>
20
20
#include <linux/i2c.h>
21
-
#include <linux/gpio.h>
21
+
#include <linux/gpio/driver.h>
22
22
23
23
#define GPIO_GROUP_NUM 2
24
24
#define GPIO_NUM_PER_GROUP 8
25
25
#define GPIO_NUM (GPIO_GROUP_NUM*GPIO_NUM_PER_GROUP)
26
26
27
27
struct mc9s08dz60 {
28
28
struct i2c_client *client;
29
29
struct gpio_chip chip;
30
30
};
31
31