linux/drivers/gpio/gpio-stmpe.c

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

#include <linux/cleanup.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/gpio/driver.h>
#include <linux/interrupt.h>
#include <linux/of.h>
#include <linux/mfd/stmpe.h>
#include <linux/seq_file.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 {};

enum {};

#define CACHE_NR_REGS
/* No variant has more than 24 GPIOs */
#define CACHE_NR_BANKS

struct stmpe_gpio {};

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

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

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

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

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

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

static const struct gpio_chip template_chip =;

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

static void stmpe_gpio_irq_lock(struct irq_data *d)
{}

static void stmpe_gpio_irq_sync_unlock(struct irq_data *d)
{}

static void stmpe_gpio_irq_mask(struct irq_data *d)
{}

static void stmpe_gpio_irq_unmask(struct irq_data *d)
{}

static void stmpe_dbg_show_one(struct seq_file *s,
			       struct gpio_chip *gc,
			       unsigned offset, unsigned gpio)
{}

static void stmpe_dbg_show(struct seq_file *s, struct gpio_chip *gc)
{}

static const struct irq_chip stmpe_gpio_irq_chip =;

#define MAX_GPIOS

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

static void stmpe_init_irq_valid_mask(struct gpio_chip *gc,
				      unsigned long *valid_mask,
				      unsigned int ngpios)
{}

static void stmpe_gpio_disable(void *stmpe)
{}

static int stmpe_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver stmpe_gpio_driver =;

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