#include <linux/module.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/irq.h>
#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
#include <linux/bitops.h>
#include <linux/of.h>
#include <linux/mfd/twl6040.h>
static int twl6040gpo_get(struct gpio_chip *chip, unsigned offset)
{ … }
static int twl6040gpo_get_direction(struct gpio_chip *chip, unsigned offset)
{ … }
static int twl6040gpo_direction_out(struct gpio_chip *chip, unsigned offset,
int value)
{ … }
static void twl6040gpo_set(struct gpio_chip *chip, unsigned offset, int value)
{ … }
static struct gpio_chip twl6040gpo_chip = …;
static int gpo_twl6040_probe(struct platform_device *pdev)
{ … }
MODULE_ALIAS(…) …;
static struct platform_driver gpo_twl6040_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;