linux/drivers/gpio/gpio-tc3589x.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) ST-Ericsson SA 2010
 *
 * Author: Hanumath Prasad <[email protected]> for ST-Ericsson
 * Author: Rabin Vincent <[email protected]> for ST-Ericsson
 */

#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/gpio/driver.h>
#include <linux/of.h>
#include <linux/interrupt.h>
#include <linux/mfd/tc3589x.h>
#include <linux/bitops.h>

/*
 * These registers are modified under the irq bus lock and cached to avoid
 * unnecessary writes in bus_sync_unlock.
 */
enum {};

#define CACHE_NR_REGS
#define CACHE_NR_BANKS

struct tc3589x_gpio {};

static int tc3589x_gpio_get(struct gpio_chip *chip, unsigned int offset)
{}

static void tc3589x_gpio_set(struct gpio_chip *chip, unsigned int offset, int val)
{}

static int tc3589x_gpio_direction_output(struct gpio_chip *chip,
					 unsigned int offset, int val)
{}

static int tc3589x_gpio_direction_input(struct gpio_chip *chip,
					unsigned int offset)
{}

static int tc3589x_gpio_get_direction(struct gpio_chip *chip,
				      unsigned int offset)
{}

static int tc3589x_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
				   unsigned long config)
{}

static const struct gpio_chip template_chip =;

static int tc3589x_gpio_irq_set_type(struct irq_data *d, unsigned int type)
{}

static void tc3589x_gpio_irq_lock(struct irq_data *d)
{}

static void tc3589x_gpio_irq_sync_unlock(struct irq_data *d)
{}

static void tc3589x_gpio_irq_mask(struct irq_data *d)
{}

static void tc3589x_gpio_irq_unmask(struct irq_data *d)
{}

static const struct irq_chip tc3589x_gpio_irq_chip =;

static irqreturn_t tc3589x_gpio_irq(int irq, void *dev)
{}

static int tc3589x_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver tc3589x_gpio_driver =;

static int __init tc3589x_gpio_init(void)
{}
subsys_initcall(tc3589x_gpio_init);