1 /* SPDX-License-Identifier: MIT */ 2 3 #ifndef DRM_CLIENT_SETUP_H 4 #define DRM_CLIENT_SETUP_H 5 6 #include <linux/types.h> 7 8 struct drm_device; 9 struct drm_format_info; 10 11 #if defined(CONFIG_DRM_CLIENT_SETUP) 12 void drm_client_setup(struct drm_device *dev, const struct drm_format_info *format); 13 void drm_client_setup_with_fourcc(struct drm_device *dev, u32 fourcc); 14 void drm_client_setup_with_color_mode(struct drm_device *dev, unsigned int color_mode); 15 #else 16 static inline void drm_client_setup(struct drm_device *dev, 17 const struct drm_format_info *format) 18 { } 19 static inline void drm_client_setup_with_fourcc(struct drm_device *dev, u32 fourcc) 20 { } 21 static inline void drm_client_setup_with_color_mode(struct drm_device *dev, 22 unsigned int color_mode) 23 { } 24 #endif 25 26 #endif 27