linux/drivers/gpio/gpio-sl28cpld.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * sl28cpld GPIO driver
 *
 * Copyright 2020 Michael Walle <[email protected]>
 */

#include <linux/device.h>
#include <linux/gpio/driver.h>
#include <linux/gpio/regmap.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* GPIO flavor */
#define GPIO_REG_DIR
#define GPIO_REG_OUT
#define GPIO_REG_IN
#define GPIO_REG_IE
#define GPIO_REG_IP

/* input-only flavor */
#define GPI_REG_IN

/* output-only flavor */
#define GPO_REG_OUT

enum sl28cpld_gpio_type {};

static const struct regmap_irq sl28cpld_gpio_irqs[] =;

static int sl28cpld_gpio_irq_init(struct platform_device *pdev,
				  unsigned int base,
				  struct gpio_regmap_config *config)
{}

static int sl28cpld_gpio_probe(struct platform_device *pdev)
{}

static const struct of_device_id sl28cpld_gpio_of_match[] =;
MODULE_DEVICE_TABLE(of, sl28cpld_gpio_of_match);

static struct platform_driver sl28cpld_gpio_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();