1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * rcar_du_encoder.h -- R-Car Display Unit Encoder
5 * Copyright (C) 2013-2014 Renesas Electronics Corporation
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
10 #ifndef __RCAR_DU_ENCODER_H__
11 #define __RCAR_DU_ENCODER_H__
13 #include <drm/drm_encoder.h>
15 struct rcar_du_device
;
17 struct rcar_du_encoder
{
18 struct drm_encoder base
;
19 enum rcar_du_output output
;
22 #define to_rcar_encoder(e) \
23 container_of(e, struct rcar_du_encoder, base)
25 #define rcar_encoder_to_drm_encoder(e) (&(e)->base)
27 int rcar_du_encoder_init(struct rcar_du_device
*rcdu
,
28 enum rcar_du_output output
,
29 struct device_node
*enc_node
);
31 #endif /* __RCAR_DU_ENCODER_H__ */