#include <linux/gpio/driver.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#define DEFAULT_PIN_NUMBER …
#define INPUT_REG_OFFSET …
#define OUTPUT_REG_OFFSET …
#define DIRECTION_REG_OFFSET …
static int ts4800_gpio_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id ts4800_gpio_of_match[] = …;
MODULE_DEVICE_TABLE(of, ts4800_gpio_of_match);
static struct platform_driver ts4800_gpio_driver = …;
module_platform_driver_probe(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;