aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/ipuv3-plane.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2016-07-06 15:47:11 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-07-12 18:24:29 +0200
commit3df0739052c23989b441883fa251a0988f75c0f3 (patch)
tree5e24ea8b63f4b36191e81b9dd2f792a57de0f8fb /drivers/gpu/drm/imx/ipuv3-plane.c
parentdrm/imx: store internal bus configuration in crtc state (diff)
downloadlinux-dev-3df0739052c23989b441883fa251a0988f75c0f3.tar.xz
linux-dev-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-plane.c')
-rw-r--r--drivers/gpu/drm/imx/ipuv3-plane.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c
index 3f5f9566b152..4ad67d015ec7 100644
--- a/drivers/gpu/drm/imx/ipuv3-plane.c
+++ b/drivers/gpu/drm/imx/ipuv3-plane.c
@@ -23,7 +23,10 @@
#include "video/imx-ipu-v3.h"
#include "ipuv3-plane.h"
-#define to_ipu_plane(x) container_of(x, struct ipu_plane, base)
+static inline struct ipu_plane *to_ipu_plane(struct drm_plane *p)
+{
+ return container_of(p, struct ipu_plane, base);
+}
static const uint32_t ipu_plane_formats[] = {
DRM_FORMAT_ARGB1555,