]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/exynos: exynos_drm.h header file fixes
authorKamil Debski <k.debski@samsung.com>
Wed, 15 Feb 2012 01:23:33 +0000 (10:23 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 15 Feb 2012 01:29:12 +0000 (10:29 +0900)
First of all #ifdef __KERNEL__ was added to exynos_drm.h to
mark the part that should be left out of userspace.
Secondly exynos_drm.h was added to include/drm/Kbuild, so it
will be included when doing make headers_install.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
include/drm/Kbuild
include/drm/exynos_drm.h

index a5c0e10fd47d4a93a3bbc49c04bbff4f686b08c9..1e38a19d68f6220d3c89d9f3ffae84b8cbb012a2 100644 (file)
@@ -2,6 +2,7 @@ header-y += drm.h
 header-y += drm_fourcc.h
 header-y += drm_mode.h
 header-y += drm_sarea.h
+header-y += exynos_drm.h
 header-y += i810_drm.h
 header-y += i915_drm.h
 header-y += mga_drm.h
index 308575ea7c0089f95821c57a181a2349e3512c90..1ed3aae893a5b2224554820cdbe3e7c9ad9d6ed4 100644 (file)
@@ -97,6 +97,8 @@ struct drm_exynos_plane_set_zpos {
 #define DRM_IOCTL_EXYNOS_PLANE_SET_ZPOS        DRM_IOWR(DRM_COMMAND_BASE + \
                DRM_EXYNOS_PLANE_SET_ZPOS, struct drm_exynos_plane_set_zpos)
 
+#ifdef __KERNEL__
+
 /**
  * A structure for lcd panel information.
  *
@@ -152,4 +154,5 @@ struct exynos_drm_hdmi_pdata {
        unsigned int                    bpp;
 };
 
-#endif
+#endif /* __KERNEL__ */
+#endif /* _EXYNOS_DRM_H_ */