treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / fsl-dcu / fsl_dcu_drm_output.h
blob8d7dedb9593ff92ca81e41fa86194879db6fdfe3
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright 2015 Freescale Semiconductor, Inc.
5 * Freescale DCU drm device driver
6 */
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)
21 : NULL;
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__ */