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