mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 17:57:23 +07:00
af873fcece
Based on 1 normalized pattern(s): license terms gnu general public license gpl version 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 161 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170027.447718015@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
61 lines
1.4 KiB
C
61 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Per-device information from the pin control system.
|
|
* This is the stuff that get included into the device
|
|
* core.
|
|
*
|
|
* Copyright (C) 2012 ST-Ericsson SA
|
|
* Written on behalf of Linaro for ST-Ericsson
|
|
* This interface is used in the core to keep track of pins.
|
|
*
|
|
* Author: Linus Walleij <linus.walleij@linaro.org>
|
|
*/
|
|
|
|
#ifndef PINCTRL_DEVINFO_H
|
|
#define PINCTRL_DEVINFO_H
|
|
|
|
#ifdef CONFIG_PINCTRL
|
|
|
|
/* The device core acts as a consumer toward pinctrl */
|
|
#include <linux/pinctrl/consumer.h>
|
|
|
|
/**
|
|
* struct dev_pin_info - pin state container for devices
|
|
* @p: pinctrl handle for the containing device
|
|
* @default_state: the default state for the handle, if found
|
|
* @init_state: the state at probe time, if found
|
|
* @sleep_state: the state at suspend time, if found
|
|
* @idle_state: the state at idle (runtime suspend) time, if found
|
|
*/
|
|
struct dev_pin_info {
|
|
struct pinctrl *p;
|
|
struct pinctrl_state *default_state;
|
|
struct pinctrl_state *init_state;
|
|
#ifdef CONFIG_PM
|
|
struct pinctrl_state *sleep_state;
|
|
struct pinctrl_state *idle_state;
|
|
#endif
|
|
};
|
|
|
|
extern int pinctrl_bind_pins(struct device *dev);
|
|
extern int pinctrl_init_done(struct device *dev);
|
|
|
|
#else
|
|
|
|
struct device;
|
|
|
|
/* Stubs if we're not using pinctrl */
|
|
|
|
static inline int pinctrl_bind_pins(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int pinctrl_init_done(struct device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* CONFIG_PINCTRL */
|
|
#endif /* PINCTRL_DEVINFO_H */
|