1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2015 Freescale Semiconductor, Inc.
5 * Freescale DCU drm device driver
8 #ifndef __FSL_DCU_DRM_CONNECTOR_H__
9 #define __FSL_DCU_DRM_CONNECTOR_H__
11 struct fsl_dcu_drm_connector
{
12 struct drm_connector base
;
13 struct drm_encoder
*encoder
;
14 struct drm_panel
*panel
;
17 static inline struct fsl_dcu_drm_connector
*
18 to_fsl_dcu_connector(struct drm_connector
*con
)
20 return con
? container_of(con
, struct fsl_dcu_drm_connector
, base
)
24 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device
*fsl_dev
,
25 struct drm_crtc
*crtc
);
26 int fsl_dcu_create_outputs(struct fsl_dcu_drm_device
*fsl_dev
);
28 #endif /* __FSL_DCU_DRM_CONNECTOR_H__ */