drm/rockchip: drv: rockchip_fb_alloc maybe used by direct show

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic888e72e300a55c041152ad94752b35d3648eb2c
This commit is contained in:
Sandy Huang
2022-02-17 15:12:27 +08:00
parent b70a9052fa
commit f0ff9378bb
2 changed files with 4 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ static const struct drm_framebuffer_funcs rockchip_drm_fb_funcs = {
.create_handle = drm_gem_fb_create_handle,
};
static struct drm_framebuffer *
struct drm_framebuffer *
rockchip_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
struct drm_gem_object **obj, unsigned int num_planes)
{

View File

@@ -21,6 +21,9 @@ void rockchip_drm_mode_config_init(struct drm_device *dev);
struct drm_framebuffer *
rockchip_drm_logo_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
struct rockchip_logo *logo);
struct drm_framebuffer *
rockchip_fb_alloc(struct drm_device *dev, const struct drm_mode_fb_cmd2 *mode_cmd,
struct drm_gem_object **obj, unsigned int num_planes);
#define to_rockchip_logo_fb(x) container_of(x, struct rockchip_drm_logo_fb, fb)