linux/drivers/video/fbdev/via/via-gpio.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Support for viafb GPIO ports.
 *
 * Copyright 2009 Jonathan Corbet <[email protected]>
 */

#include <linux/spinlock.h>
#include <linux/gpio/driver.h>
#include <linux/gpio/machine.h>
#include <linux/platform_device.h>
#include <linux/via-core.h>
#include <linux/export.h>
#include "via-gpio.h"

/*
 * The ports we know about.  Note that the port-25 gpios are not
 * mentioned in the datasheet.
 */

struct viafb_gpio {};

static struct viafb_gpio viafb_all_gpios[] =;

#define VIAFB_NUM_GPIOS

/*
 * This structure controls the active GPIOs, which may be a subset
 * of those which are known.
 */

struct viafb_gpio_cfg {};

/*
 * GPIO access functions
 */
static void via_gpio_set(struct gpio_chip *chip, unsigned int nr,
			 int value)
{}

static int via_gpio_dir_out(struct gpio_chip *chip, unsigned int nr,
			    int value)
{}

/*
 * Set the input direction.  I'm not sure this is right; we should
 * be able to do input without disabling output.
 */
static int via_gpio_dir_input(struct gpio_chip *chip, unsigned int nr)
{}

static int via_gpio_get(struct gpio_chip *chip, unsigned int nr)
{}


static struct viafb_gpio_cfg viafb_gpio_config =;

/*
 * Manage the software enable bit.
 */
static void viafb_gpio_enable(struct viafb_gpio *gpio)
{}

static void viafb_gpio_disable(struct viafb_gpio *gpio)
{}

#ifdef CONFIG_PM

static int viafb_gpio_suspend(void *private)
{}

static int viafb_gpio_resume(void *private)
{}

static struct viafb_pm_hooks viafb_gpio_pm_hooks =;
#endif /* CONFIG_PM */

static struct gpiod_lookup_table viafb_gpio_table =;

/*
 * Platform device stuff.
 */
static int viafb_gpio_probe(struct platform_device *platdev)
{}


static void viafb_gpio_remove(struct platform_device *platdev)
{}

static struct platform_driver via_gpio_driver =;

int viafb_gpio_init(void)
{}

void viafb_gpio_exit(void)
{}