linux/drivers/gpio/gpio-moxtet.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  Turris Mox Moxtet GPIO expander
 *
 *  Copyright (C) 2018 Marek Behún <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/gpio/driver.h>
#include <linux/moxtet.h>
#include <linux/module.h>

#define MOXTET_GPIO_NGPIOS
#define MOXTET_GPIO_INPUTS

struct moxtet_gpio_desc {};

static const struct moxtet_gpio_desc descs[] =;

struct moxtet_gpio_chip {};

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

static void moxtet_gpio_set_value(struct gpio_chip *gc, unsigned int offset,
				  int val)
{}

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

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

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

static int moxtet_gpio_probe(struct device *dev)
{}

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

static const enum turris_mox_module_id moxtet_gpio_module_table[] =;

static struct moxtet_driver moxtet_gpio_driver =;
module_moxtet_driver();

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