#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/mfd/palmas.h>
#include <linux/of.h>
#include <linux/platform_device.h>
struct palmas_gpio { … };
struct palmas_device_data { … };
static int palmas_gpio_get(struct gpio_chip *gc, unsigned offset)
{ … }
static void palmas_gpio_set(struct gpio_chip *gc, unsigned offset,
int value)
{ … }
static int palmas_gpio_output(struct gpio_chip *gc, unsigned offset,
int value)
{ … }
static int palmas_gpio_input(struct gpio_chip *gc, unsigned offset)
{ … }
static int palmas_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
{ … }
static const struct palmas_device_data palmas_dev_data = …;
static const struct palmas_device_data tps80036_dev_data = …;
static const struct of_device_id of_palmas_gpio_match[] = …;
static int palmas_gpio_probe(struct platform_device *pdev)
{ … }
static struct platform_driver palmas_gpio_driver = …;
static int __init palmas_gpio_init(void)
{ … }
subsys_initcall(palmas_gpio_init);