diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-11-03 18:14:44 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-11-05 19:12:04 +0300 |
commit | 8ab59da26bc0ae0abfcaabc4218c74827d154256 (patch) | |
tree | 1e9711ee2d74bbca9d18afedb78769ef25c68300 /include/drm/drm_fbdev_generic.h | |
parent | e7c5c29a9eb1c992c838ba43256fc2c55d930750 (diff) | |
download | linux-8ab59da26bc0ae0abfcaabc4218c74827d154256.tar.xz |
drm/fb-helper: Move generic fbdev emulation into separate source file
Move the generic fbdev implementation into its own source and header
file. Adapt drivers. No functional changes, but some of the internal
helpers have been renamed to fit into the drm_fbdev_ naming scheme.
v3:
* rename drm_fbdev.{c,h} to drm_fbdev_generic.{c,h}
* rebase onto vmwgfx changes
* rebase onto xlnx changes
* fix include statements in amdgpu
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221103151446.2638-22-tzimmermann@suse.de
Diffstat (limited to 'include/drm/drm_fbdev_generic.h')
-rw-r--r-- | include/drm/drm_fbdev_generic.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/drm/drm_fbdev_generic.h b/include/drm/drm_fbdev_generic.h new file mode 100644 index 000000000000..75799342098d --- /dev/null +++ b/include/drm/drm_fbdev_generic.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef DRM_FBDEV_GENERIC_H +#define DRM_FBDEV_GENERIC_H + +struct drm_device; + +#ifdef CONFIG_DRM_FBDEV_EMULATION +void drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp); +#else +static inline void drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp) +{ } +#endif + +#endif |