summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mxsfb/mxsfb_drv.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-27 05:06:34 +0300
committerStefan Agner <stefan@agner.ch>2020-07-28 18:20:13 +0300
commitc42001e357f7de11e882f54461be27757a7fe51a (patch)
treece2785742e40956fb6f22e8c4010bcf3bcbbadd3 /drivers/gpu/drm/mxsfb/mxsfb_drv.h
parentfcf863ec07688a5242b75b032bad3f0e3581d68d (diff)
downloadlinux-c42001e357f7de11e882f54461be27757a7fe51a.tar.xz
drm: mxsfb: Use drm_panel_bridge
Replace the manual connector implementation based on drm_panel with the drm_panel_bridge helper. This simplifies the mxsfb driver by removing connector-related code, and standardizing all pipeline control operations on bridges. A hack is needed to get hold of the connector, as that's our only source of bus flags and formats for now. As soon as the bridge API provides us with that information this can be fixed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Stefan Agner <stefan@agner.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200727020654.8231-3-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/mxsfb/mxsfb_drv.h')
-rw-r--r--drivers/gpu/drm/mxsfb/mxsfb_drv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.h b/drivers/gpu/drm/mxsfb/mxsfb_drv.h
index 0b65b5194a9c..0e3e5a63bbf9 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.h
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.h
@@ -8,6 +8,8 @@
#ifndef __MXSFB_DRV_H__
#define __MXSFB_DRV_H__
+struct drm_device;
+
struct mxsfb_devdata {
unsigned int transfer_count;
unsigned int cur_buf;
@@ -26,10 +28,9 @@ struct mxsfb_drm_private {
struct clk *clk_axi;
struct clk *clk_disp_axi;
+ struct drm_device *drm;
struct drm_simple_display_pipe pipe;
- struct drm_connector panel_connector;
struct drm_connector *connector;
- struct drm_panel *panel;
struct drm_bridge *bridge;
};