#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/device.h>
#include <linux/gpio/driver.h>
#include <linux/mfd/rc5t583.h>
struct rc5t583_gpio { … };
static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset)
{ … }
static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val)
{ … }
static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset)
{ … }
static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset,
int value)
{ … }
static int rc5t583_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
{ … }
static void rc5t583_gpio_free(struct gpio_chip *gc, unsigned offset)
{ … }
static int rc5t583_gpio_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rc5t583_gpio_driver = …;
static int __init rc5t583_gpio_init(void)
{ … }
subsys_initcall(rc5t583_gpio_init);