diff options
author | Tuomas Kulve <tkulve@nvidia.com> | 2013-08-20 12:25:36 +0300 |
---|---|---|
committer | Jon Mayo <jmayo@nvidia.com> | 2013-10-24 09:48:11 -0700 |
commit | 2b1e61685c1373b3aa36b51985726e50e3106003 (patch) | |
tree | b607796baf8e52c8aa7955828b4ea948a2d24f1a /include/video | |
parent | d4681c69f1a173184d6a0da5b88f9f84043bc3ae (diff) |
video: tegra: fb: Add compat ioctl
Bug 1352981
Change-Id: Ie103fd01a751744f9d879dbf91972021eb73e483
Signed-off-by: Tuomas Kulve <tkulve@nvidia.com>
Reviewed-on: http://git-master/r/298883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/tegrafb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/video/tegrafb.h b/include/video/tegrafb.h index 919661b1a8e0..60bf30944af3 100644 --- a/include/video/tegrafb.h +++ b/include/video/tegrafb.h @@ -21,9 +21,16 @@ #include <linux/fb.h> #include <linux/types.h> #include <linux/ioctl.h> +#if defined(__KERNEL__) +#include <linux/compat.h> +#endif struct tegra_fb_modedb { +#ifdef CONFIG_COMPAT + __u32 modedb; +#else struct fb_var_screeninfo *modedb; +#endif __u32 modedb_len; }; |