mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
Rework fbdev probing to support fbdev_probe in struct drm_driver and remove the old fb_probe callback. Provide an initializer macro for struct drm_driver that sets the callback according to the kernel configuration. Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The exynos-drm driver specifies a preferred color mode of 32. As this is the default if no format has been given, leave it out entirely. v5: - select DRM_CLIENT_SELECTION v4: - revert an unrelated cleanup (Javier) Signed-off-by: Thomas Zimmermann <[email protected]> Cc: Inki Dae <[email protected]> Cc: Seung-Woo Kim <[email protected]> Cc: Kyungmin Park <[email protected]> Acked-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
28 lines
686 B
C
28 lines
686 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
|
|
*
|
|
* Authors:
|
|
* Inki Dae <[email protected]>
|
|
* Joonyoung Shim <[email protected]>
|
|
* Seung-Woo Kim <[email protected]>
|
|
*/
|
|
|
|
#ifndef _EXYNOS_DRM_FBDEV_H_
|
|
#define _EXYNOS_DRM_FBDEV_H_
|
|
|
|
struct drm_fb_helper;
|
|
struct drm_fb_helper_surface_size;
|
|
|
|
#if defined(CONFIG_DRM_FBDEV_EMULATION)
|
|
int exynos_drm_fbdev_driver_fbdev_probe(struct drm_fb_helper *fbh,
|
|
struct drm_fb_helper_surface_size *sizes);
|
|
#define EXYNOS_DRM_FBDEV_DRIVER_OPS \
|
|
.fbdev_probe = exynos_drm_fbdev_driver_fbdev_probe
|
|
#else
|
|
#define EXYNOS_DRM_FBDEV_DRIVER_OPS \
|
|
.fbdev_probe = NULL
|
|
#endif
|
|
|
|
#endif
|