diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-06 16:47:11 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-07-12 19:24:29 +0300 |
commit | 3df0739052c23989b441883fa251a0988f75c0f3 (patch) | |
tree | 5e24ea8b63f4b36191e81b9dd2f792a57de0f8fb /drivers/gpu/drm/imx/ipuv3-plane.c | |
parent | 49f98bc4d44a4ee507737f8d5531d05539787319 (diff) | |
download | linux-3df0739052c23989b441883fa251a0988f75c0f3.tar.xz |
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.c | 5 |
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, |