| 1 | /* SPDX-License-Identifier: GPL-2.0 or MIT */ |
| 2 | |
| 3 | #ifndef _DRM_CLIENT_EVENT_H_ |
| 4 | #define _DRM_CLIENT_EVENT_H_ |
| 5 | |
| 6 | #include <linux/types.h> |
| 7 | |
| 8 | struct drm_device; |
| 9 | |
| 10 | #if defined(CONFIG_DRM_CLIENT) |
| 11 | void drm_client_dev_unregister(struct drm_device *dev); |
| 12 | void drm_client_dev_hotplug(struct drm_device *dev); |
| 13 | void drm_client_dev_restore(struct drm_device *dev, bool force); |
| 14 | void drm_client_dev_suspend(struct drm_device *dev); |
| 15 | void drm_client_dev_resume(struct drm_device *dev); |
| 16 | #else |
| 17 | static inline void drm_client_dev_unregister(struct drm_device *dev) |
| 18 | { } |
| 19 | static inline void drm_client_dev_hotplug(struct drm_device *dev) |
| 20 | { } |
| 21 | static inline void drm_client_dev_restore(struct drm_device *dev, bool force) |
| 22 | { } |
| 23 | static inline void drm_client_dev_suspend(struct drm_device *dev) |
| 24 | { } |
| 25 | static inline void drm_client_dev_resume(struct drm_device *dev) |
| 26 | { } |
| 27 | #endif |
| 28 | |
| 29 | #endif |
| 30 | |