1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright 2015 Freescale Semiconductor, Inc. 4 * 5 * Freescale DCU drm device driver 6 */ 7 8 #ifndef __FSL_DCU_DRM_CONNECTOR_H__ 9 #define __FSL_DCU_DRM_CONNECTOR_H__ 10 11 struct fsl_dcu_drm_connector { 12 struct drm_connector base; 13 struct drm_encoder *encoder; 14 struct drm_panel *panel; 15 }; 16 17 static inline struct fsl_dcu_drm_connector * to_fsl_dcu_connector(struct drm_connector * con)18to_fsl_dcu_connector(struct drm_connector *con) 19 { 20 return con ? container_of(con, struct fsl_dcu_drm_connector, base) 21 : NULL; 22 } 23 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); 27 28 #endif /* __FSL_DCU_DRM_CONNECTOR_H__ */ 29