linux/drivers/gpio/gpio-kempld.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Kontron PLD GPIO driver
 *
 * Copyright (c) 2010-2013 Kontron Europe GmbH
 * Author: Michael Brunner <[email protected]>
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/platform_device.h>
#include <linux/gpio/driver.h>
#include <linux/mfd/kempld.h>

#define KEMPLD_GPIO_MAX_NUM
#define KEMPLD_GPIO_MASK(x)
#define KEMPLD_GPIO_DIR_NUM(x)
#define KEMPLD_GPIO_LVL_NUM(x)
#define KEMPLD_GPIO_EVT_LVL_EDGE
#define KEMPLD_GPIO_IEN

struct kempld_gpio_data {};

/*
 * Set or clear GPIO bit
 * kempld_get_mutex must be called prior to calling this function.
 */
static void kempld_gpio_bitop(struct kempld_device_data *pld,
			      u8 reg, u8 bit, u8 val)
{}

static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit)
{}

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

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

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

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

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

static int kempld_gpio_pincount(struct kempld_device_data *pld)
{}

static int kempld_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver kempld_gpio_driver =;

module_platform_driver();

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