1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 4 * 5 * Authors: 6 * Inki Dae <inki.dae@samsung.com> 7 * Joonyoung Shim <jy0922.shim@samsung.com> 8 * Seung-Woo Kim <sw0312.kim@samsung.com> 9 */ 10 11 #ifndef _EXYNOS_DRM_FBDEV_H_ 12 #define _EXYNOS_DRM_FBDEV_H_ 13 14 #ifdef CONFIG_DRM_FBDEV_EMULATION 15 16 int exynos_drm_fbdev_init(struct drm_device *dev); 17 void exynos_drm_fbdev_fini(struct drm_device *dev); 18 19 #else 20 exynos_drm_fbdev_init(struct drm_device * dev)21static inline int exynos_drm_fbdev_init(struct drm_device *dev) 22 { 23 return 0; 24 } 25 exynos_drm_fbdev_fini(struct drm_device * dev)26static inline void exynos_drm_fbdev_fini(struct drm_device *dev) 27 { 28 } 29 exynos_drm_fbdev_restore_mode(struct drm_device * dev)30static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev) 31 { 32 } 33 34 #define exynos_drm_output_poll_changed (NULL) 35 36 #endif 37 38 #endif 39