linux/drivers/gpio/gpio-lp3943.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * TI/National Semiconductor LP3943 GPIO driver
 *
 * Copyright 2013 Texas Instruments
 *
 * Author: Milo Kim <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/gpio/driver.h>
#include <linux/i2c.h>
#include <linux/mfd/lp3943.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

enum lp3943_gpios {};

struct lp3943_gpio {};

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

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

static int lp3943_gpio_set_mode(struct lp3943_gpio *lp3943_gpio, u8 offset,
				u8 val)
{}

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

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

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

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

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

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

static const struct gpio_chip lp3943_gpio_chip =;

static int lp3943_gpio_probe(struct platform_device *pdev)
{}

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

static struct platform_driver lp3943_gpio_driver =;
module_platform_driver();

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