diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-06 15:47:11 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-12 18:24:29 +0200 |
commit | 3df0739052c23989b441883fa251a0988f75c0f3 (patch) | |
tree | 5e24ea8b63f4b36191e81b9dd2f792a57de0f8fb /drivers/gpu/drm/imx/ipuv3-crtc.c | |
parent | 49f98bc4d44a4ee507737f8d5531d05539787319 (diff) | |
download | linux-stable-3df0739052c23989b441883fa251a0988f75c0f3.tar.gz linux-stable-3df0739052c23989b441883fa251a0988f75c0f3.tar.bz2 linux-stable-3df0739052c23989b441883fa251a0988f75c0f3.zip |
drm/imx: turn remaining container_of macros into inline functions
This allows the compiler to do type checking.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-crtc.c')
-rw-r--r-- | drivers/gpu/drm/imx/ipuv3-crtc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index 2791ef070e2e..08e188bc10fc 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -46,7 +46,10 @@ struct ipu_crtc { int irq; }; -#define to_ipu_crtc(x) container_of(x, struct ipu_crtc, base) +static inline struct ipu_crtc *to_ipu_crtc(struct drm_crtc *crtc) +{ + return container_of(crtc, struct ipu_crtc, base); +} static void ipu_crtc_enable(struct drm_crtc *crtc) { |