printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / pci-bwctrl.h
blobcee07127455b3355f2ef2a5f5aef334b691349f8
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * PCIe bandwidth controller
5 * Copyright (C) 2023-2024 Intel Corporation
6 */
8 #ifndef LINUX_PCI_BWCTRL_H
9 #define LINUX_PCI_BWCTRL_H
11 #include <linux/pci.h>
13 struct thermal_cooling_device;
15 #ifdef CONFIG_PCIE_THERMAL
16 struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port);
17 void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev);
18 #else
19 static inline struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port)
21 return NULL;
23 static inline void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev)
26 #endif
28 #endif