linux/drivers/gpio/gpio-mb86s7x.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/drivers/gpio/gpio-mb86s7x.c
 *
 *  Copyright (C) 2015 Fujitsu Semiconductor Limited
 *  Copyright (C) 2015 Linaro Ltd.
 */

#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/slab.h>

#include "gpiolib-acpi.h"

/*
 * Only first 8bits of a register correspond to each pin,
 * so there are 4 registers for 32 pins.
 */
#define PDR(x)
#define DDR(x)
#define PFR(x)

#define OFFSET(x)

struct mb86s70_gpio_chip {};

static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio)
{}

static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio)
{}

static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio)
{}

static int mb86s70_gpio_direction_output(struct gpio_chip *gc,
					 unsigned gpio, int value)
{}

static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio)
{}

static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value)
{}

static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
{}

static int mb86s70_gpio_probe(struct platform_device *pdev)
{}

static void mb86s70_gpio_remove(struct platform_device *pdev)
{}

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

#ifdef CONFIG_ACPI
static const struct acpi_device_id mb86s70_gpio_acpi_ids[] =;
MODULE_DEVICE_TABLE(acpi, mb86s70_gpio_acpi_ids);
#endif

static struct platform_driver mb86s70_gpio_driver =;
module_platform_driver();

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