diff options
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_txp.c')
| -rw-r--r-- | drivers/gpu/drm/vc4/vc4_txp.c | 12 | 
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_txp.c b/drivers/gpu/drm/vc4/vc4_txp.c index ef5cab2a3aa9..c5abdec03103 100644 --- a/drivers/gpu/drm/vc4/vc4_txp.c +++ b/drivers/gpu/drm/vc4/vc4_txp.c @@ -168,15 +168,11 @@ struct vc4_txp {  	void __iomem *regs;  }; -static inline struct vc4_txp *encoder_to_vc4_txp(struct drm_encoder *encoder) -{ -	return container_of(encoder, struct vc4_txp, encoder.base); -} +#define encoder_to_vc4_txp(_encoder)					\ +	container_of_const(_encoder, struct vc4_txp, encoder.base) -static inline struct vc4_txp *connector_to_vc4_txp(struct drm_connector *conn) -{ -	return container_of(conn, struct vc4_txp, connector.base); -} +#define connector_to_vc4_txp(_connector)				\ +	container_of_const(_connector, struct vc4_txp, connector.base)  static const struct debugfs_reg32 txp_regs[] = {  	VC4_REG32(TXP_DST_PTR),  |