mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 14:38:02 +07:00
9a47db8e7a
The DRM kernel API used to be defined in a handful of headers, pulled in through drmP.h. It has since been split in multiple headers for the different DRM components, and drmP.h turned into a legacy header that just pulls in most of the DRM kernel API (and a large number of other miscellaneous kernel headers). In order to speed up compilation, replace inclusion of drmP.h with only the required headers. It turns out that the rcar-du-drm driver already includes most of the necessary headers, so the change is simple. While at it, remove unneeded inclusion of other headers, and unneeded forward declarations of structures. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
33 lines
751 B
C
33 lines
751 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* rcar_du_encoder.h -- R-Car Display Unit Encoder
|
|
*
|
|
* Copyright (C) 2013-2014 Renesas Electronics Corporation
|
|
*
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
*/
|
|
|
|
#ifndef __RCAR_DU_ENCODER_H__
|
|
#define __RCAR_DU_ENCODER_H__
|
|
|
|
#include <drm/drm_encoder.h>
|
|
|
|
struct rcar_du_device;
|
|
|
|
struct rcar_du_encoder {
|
|
struct drm_encoder base;
|
|
enum rcar_du_output output;
|
|
};
|
|
|
|
#define to_rcar_encoder(e) \
|
|
container_of(e, struct rcar_du_encoder, base)
|
|
|
|
#define rcar_encoder_to_drm_encoder(e) (&(e)->base)
|
|
|
|
int rcar_du_encoder_init(struct rcar_du_device *rcdu,
|
|
enum rcar_du_output output,
|
|
struct device_node *enc_node,
|
|
struct device_node *con_node);
|
|
|
|
#endif /* __RCAR_DU_ENCODER_H__ */
|