linux/drivers/media/pci/solo6x10/solo6x10-gpio.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com>
 *
 * Original author:
 * Ben Collins <[email protected]>
 *
 * Additional work by:
 * John Brooks <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/uaccess.h>

#include "solo6x10.h"

static void solo_gpio_mode(struct solo_dev *solo_dev,
			   unsigned int port_mask, unsigned int mode)
{}

static void solo_gpio_set(struct solo_dev *solo_dev, unsigned int value)
{}

static void solo_gpio_clear(struct solo_dev *solo_dev, unsigned int value)
{}

static void solo_gpio_config(struct solo_dev *solo_dev)
{}

#ifdef CONFIG_GPIOLIB
/* Pins 0-7 are not exported, because it seems from code above they are
 * used for internal purposes. So offset 0 corresponds to pin 8, therefore
 * offsets 0-7 are relay GPIOs, 8-23 - input GPIOs.
 */
static int solo_gpiochip_get_direction(struct gpio_chip *chip,
				       unsigned int offset)
{}

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

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

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

static void solo_gpiochip_set(struct gpio_chip *chip,
						unsigned int offset, int value)
{}
#endif

int solo_gpio_init(struct solo_dev *solo_dev)
{}

void solo_gpio_exit(struct solo_dev *solo_dev)
{}