diff options
Diffstat (limited to 'drivers/gpu/drm/xe/xe_hwmon.h')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_hwmon.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_hwmon.h b/drivers/gpu/drm/xe/xe_hwmon.h new file mode 100644 index 000000000000..d02c1bfe8c0a --- /dev/null +++ b/drivers/gpu/drm/xe/xe_hwmon.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2023 Intel Corporation + */ + +#ifndef _XE_HWMON_H_ +#define _XE_HWMON_H_ + +#include <linux/types.h> + +struct xe_device; + +#if IS_REACHABLE(CONFIG_HWMON) +int xe_hwmon_register(struct xe_device *xe); +#else +static inline int xe_hwmon_register(struct xe_device *xe) { return 0; }; +#endif + +#endif /* _XE_HWMON_H_ */ |
