1 /*
2  * Copyright 2015 Freescale Semiconductor, Inc.
3  *
4  * Freescale DCU drm device driver
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11 
12 #ifndef __FSL_DCU_DRM_CONNECTOR_H__
13 #define __FSL_DCU_DRM_CONNECTOR_H__
14 
15 struct fsl_dcu_drm_connector {
16 	struct drm_connector base;
17 	struct drm_encoder *encoder;
18 	struct drm_panel *panel;
19 };
20 
21 static inline struct fsl_dcu_drm_connector *
22 to_fsl_dcu_connector(struct drm_connector *con)
23 {
24 	return con ? container_of(con, struct fsl_dcu_drm_connector, base)
25 		     : NULL;
26 }
27 
28 int fsl_dcu_drm_connector_create(struct fsl_dcu_drm_device *fsl_dev,
29 				 struct drm_encoder *encoder);
30 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev,
31 			       struct drm_crtc *crtc);
32 
33 #endif /* __FSL_DCU_DRM_CONNECTOR_H__ */
34