linux/drivers/pinctrl/pinconf.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Core driver for the pin config portions of the pin control subsystem
 *
 * Copyright (C) 2011 ST-Ericsson SA
 * Written on behalf of Linaro for ST-Ericsson
 *
 * Author: Linus Walleij <[email protected]>
 */
#define pr_fmt(fmt)

#include <linux/array_size.h>
#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

#include <linux/pinctrl/machine.h>
#include <linux/pinctrl/pinconf.h>
#include <linux/pinctrl/pinctrl.h>

#include "core.h"
#include "pinconf.h"

int pinconf_check_ops(struct pinctrl_dev *pctldev)
{}

int pinconf_validate_map(const struct pinctrl_map *map, int i)
{}

int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned int pin,
			   unsigned long *config)
{}

int pin_config_group_get(const char *dev_name, const char *pin_group,
			 unsigned long *config)
{}

int pinconf_map_to_setting(const struct pinctrl_map *map,
			  struct pinctrl_setting *setting)
{}

void pinconf_free_setting(const struct pinctrl_setting *setting)
{}

int pinconf_apply_setting(const struct pinctrl_setting *setting)
{}

int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned int pin,
		       unsigned long *configs, size_t nconfigs)
{}

#ifdef CONFIG_DEBUG_FS

static void pinconf_show_config(struct seq_file *s, struct pinctrl_dev *pctldev,
				unsigned long *configs, unsigned int num_configs)
{}

void pinconf_show_map(struct seq_file *s, const struct pinctrl_map *map)
{}

void pinconf_show_setting(struct seq_file *s,
			  const struct pinctrl_setting *setting)
{}

static void pinconf_dump_pin(struct pinctrl_dev *pctldev,
			     struct seq_file *s, int pin)
{}

static int pinconf_pins_show(struct seq_file *s, void *what)
{}

static void pinconf_dump_group(struct pinctrl_dev *pctldev,
			       struct seq_file *s, unsigned int selector,
			       const char *gname)
{}

static int pinconf_groups_show(struct seq_file *s, void *what)
{}

DEFINE_SHOW_ATTRIBUTE();
DEFINE_SHOW_ATTRIBUTE();

void pinconf_init_device_debugfs(struct dentry *devroot,
			 struct pinctrl_dev *pctldev)
{}

#endif