linux/drivers/gpio/gpio-wm8994.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * gpiolib support for Wolfson WM8994
 *
 * Copyright 2009 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <[email protected]>
 *
 */

#include <linux/cleanup.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/gpio/driver.h>
#include <linux/mfd/core.h>
#include <linux/platform_device.h>
#include <linux/seq_file.h>
#include <linux/regmap.h>

#include <linux/mfd/wm8994/core.h>
#include <linux/mfd/wm8994/pdata.h>
#include <linux/mfd/wm8994/gpio.h>
#include <linux/mfd/wm8994/registers.h>

struct wm8994_gpio {};

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

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

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

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

static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
{}

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

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


#ifdef CONFIG_DEBUG_FS
static const char *wm8994_gpio_fn(u16 fn)
{}

static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
{}
#else
#define wm8994_gpio_dbg_show
#endif

static const struct gpio_chip template_chip =;

static int wm8994_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver wm8994_gpio_driver =;

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

static void __exit wm8994_gpio_exit(void)
{}
module_exit(wm8994_gpio_exit);

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