8cfab3cf63
Add SPDX GPL-2.0 to all PCI files that specified the GPL version 2 license.
Remove the boilerplate GPL version 2 language, relying on the assertion in
b24413180f
("License cleanup: add SPDX GPL-2.0 license identifier to
files with no license") that the SPDX identifier may be used instead of the
full boilerplate text.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
951 B
C
39 lines
951 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/**
|
|
* PCI Endpoint ConfigFS header file
|
|
*
|
|
* Copyright (C) 2017 Texas Instruments
|
|
* Author: Kishon Vijay Abraham I <kishon@ti.com>
|
|
*/
|
|
|
|
#ifndef __LINUX_PCI_EP_CFS_H
|
|
#define __LINUX_PCI_EP_CFS_H
|
|
|
|
#include <linux/configfs.h>
|
|
|
|
#ifdef CONFIG_PCI_ENDPOINT_CONFIGFS
|
|
struct config_group *pci_ep_cfs_add_epc_group(const char *name);
|
|
void pci_ep_cfs_remove_epc_group(struct config_group *group);
|
|
struct config_group *pci_ep_cfs_add_epf_group(const char *name);
|
|
void pci_ep_cfs_remove_epf_group(struct config_group *group);
|
|
#else
|
|
static inline struct config_group *pci_ep_cfs_add_epc_group(const char *name)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void pci_ep_cfs_remove_epc_group(struct config_group *group)
|
|
{
|
|
}
|
|
|
|
static inline struct config_group *pci_ep_cfs_add_epf_group(const char *name)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void pci_ep_cfs_remove_epf_group(struct config_group *group)
|
|
{
|
|
}
|
|
#endif
|
|
#endif /* __LINUX_PCI_EP_CFS_H */
|