/* SPDX-License-Identifier: GPL-2.0-only */ /* * Consumer interface the pin control subsystem * * Copyright (C) 2012 ST-Ericsson SA * Written on behalf of Linaro for ST-Ericsson * Based on bits of regulator core, gpio core and clk core * * Author: Linus Walleij <linus.walleij@linaro.org>
*/ #ifndef __LINUX_PINCTRL_CONSUMER_H #define __LINUX_PINCTRL_CONSUMER_H
#include <linux/err.h> #include <linux/types.h>
#include <linux/pinctrl/pinctrl-state.h>
struct device; struct gpio_chip;
/* This struct is private to the core and should be regarded as a cookie */ struct pinctrl; struct pinctrl_state;
#ifdef CONFIG_PINCTRL
/* External interface to pin control */ bool pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsignedint offset); int pinctrl_gpio_request(struct gpio_chip *gc, unsignedint offset); void pinctrl_gpio_free(struct gpio_chip *gc, unsignedint offset); int pinctrl_gpio_direction_input(struct gpio_chip *gc, unsignedint offset); int pinctrl_gpio_direction_output(struct gpio_chip *gc, unsignedint offset); int pinctrl_gpio_set_config(struct gpio_chip *gc, unsignedint offset, unsignedlong config);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.