xref: /linux/include/drm/drm_client_event.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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