13 #include <linux/device.h>
15 #include <linux/types.h>
16 #include <linux/errno.h>
18 #include <linux/export.h>
55 static int iop3xx_gpio_direction_input(
struct gpio_chip *
chip,
unsigned gpio)
61 static int iop3xx_gpio_direction_output(
struct gpio_chip *
chip,
unsigned gpio,
int level)
68 static int iop3xx_gpio_get_value(
struct gpio_chip *
chip,
unsigned gpio)
73 static void iop3xx_gpio_set_value(
struct gpio_chip *
chip,
unsigned gpio,
int value)
78 static struct gpio_chip iop3xx_chip = {
80 .direction_input = iop3xx_gpio_direction_input,
81 .get = iop3xx_gpio_get_value,
82 .direction_output = iop3xx_gpio_direction_output,
83 .set = iop3xx_gpio_set_value,
88 static int __init iop3xx_gpio_setup(
void)