xref: /openbmc/linux/drivers/gpu/drm/i915/i915_hwmon.h (revision 43ee1e3f)
1 /* SPDX-License-Identifier: MIT */
2 
3 /*
4  * Copyright © 2022 Intel Corporation
5  */
6 
7 #ifndef __I915_HWMON_H__
8 #define __I915_HWMON_H__
9 
10 struct drm_i915_private;
11 
12 #if IS_REACHABLE(CONFIG_HWMON)
13 void i915_hwmon_register(struct drm_i915_private *i915);
14 void i915_hwmon_unregister(struct drm_i915_private *i915);
15 #else
16 static inline void i915_hwmon_register(struct drm_i915_private *i915) { };
17 static inline void i915_hwmon_unregister(struct drm_i915_private *i915) { };
18 #endif
19 
20 #endif /* __I915_HWMON_H__ */
21