mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00

The imx-tve driver is the only remaining user of imx_drm_connector_destroy(). Move the function to imx-tve.c Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Rob Herring <robh@kernel.org> Tested-by: Chris Healy <cphealy@gmail.com> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> # on imx6q-nitrogen6x Link: https://patchwork.freedesktop.org/patch/msgid/20240602-drm-imx-cleanup-v3-12-e549e2a43100@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
32 lines
718 B
C
32 lines
718 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _IMX_DRM_H_
|
|
#define _IMX_DRM_H_
|
|
|
|
struct device_node;
|
|
struct drm_connector;
|
|
struct drm_device;
|
|
struct drm_encoder;
|
|
|
|
struct imx_crtc_state {
|
|
struct drm_crtc_state base;
|
|
u32 bus_format;
|
|
u32 bus_flags;
|
|
int di_hsync_pin;
|
|
int di_vsync_pin;
|
|
};
|
|
|
|
static inline struct imx_crtc_state *to_imx_crtc_state(struct drm_crtc_state *s)
|
|
{
|
|
return container_of(s, struct imx_crtc_state, base);
|
|
}
|
|
|
|
extern struct platform_driver ipu_drm_driver;
|
|
|
|
int imx_drm_encoder_parse_of(struct drm_device *drm,
|
|
struct drm_encoder *encoder, struct device_node *np);
|
|
|
|
int ipu_planes_assign_pre(struct drm_device *dev,
|
|
struct drm_atomic_state *state);
|
|
|
|
#endif /* _IMX_DRM_H_ */
|