linux/drivers/gpio/gpio-max77650.c

// SPDX-License-Identifier: GPL-2.0
//
// Copyright (C) 2018 BayLibre SAS
// Author: Bartosz Golaszewski <[email protected]>
//
// GPIO driver for MAXIM 77650/77651 charger/power-supply.

#include <linux/gpio/driver.h>
#include <linux/i2c.h>
#include <linux/mfd/max77650.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

#define MAX77650_GPIO_DIR_MASK
#define MAX77650_GPIO_INVAL_MASK
#define MAX77650_GPIO_DRV_MASK
#define MAX77650_GPIO_OUTVAL_MASK
#define MAX77650_GPIO_DEBOUNCE_MASK

#define MAX77650_GPIO_DIR_OUT
#define MAX77650_GPIO_DIR_IN
#define MAX77650_GPIO_OUT_LOW
#define MAX77650_GPIO_OUT_HIGH
#define MAX77650_GPIO_DRV_OPEN_DRAIN
#define MAX77650_GPIO_DRV_PUSH_PULL
#define MAX77650_GPIO_DEBOUNCE

#define MAX77650_GPIO_DIR_BITS(_reg)
#define MAX77650_GPIO_INVAL_BITS(_reg)

struct max77650_gpio_chip {};

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

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

static void max77650_gpio_set_value(struct gpio_chip *gc,
				    unsigned int offset, int value)
{}

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

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

static int max77650_gpio_set_config(struct gpio_chip *gc,
				    unsigned int offset, unsigned long cfg)
{}

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

static int max77650_gpio_probe(struct platform_device *pdev)
{}

static struct platform_driver max77650_gpio_driver =;
module_platform_driver();

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