summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2014-02-21 14:01:24 -0800
committerJon Mayo <jmayo@nvidia.com>2014-02-25 14:38:34 -0800
commitfd56e02cd3a350a99f4fbdc2f9cbafae6123ec3b (patch)
tree4b13163c12d766c91cdd988bc9d4e4d5f04a4ba1 /include/video
parentfd32e324113d3b88f564ec7799ebe94cf345d85a (diff)
video: tegra: compat version of TEGRA_GET_MODEDB
Provide a compat version of FBIO_TEGRA_GET_MODEDB. Bug 1466416 Change-Id: Id976d9e5059d4bb81a25e1412941ecfcc38b4657 Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/373105 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include/video')
-rw-r--r--include/video/tegrafb.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/video/tegrafb.h b/include/video/tegrafb.h
index 60bf30944af3..c524c083a3c5 100644
--- a/include/video/tegrafb.h
+++ b/include/video/tegrafb.h
@@ -4,6 +4,8 @@
* Copyright (C) 2010 Google, Inc.
* Author: Erik Gilling <konkers@android.com>
*
+ * Copyright (c) 2014 NVIDIA CORPORATION. All rights reserved.
+ *
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
@@ -26,14 +28,20 @@
#endif
struct tegra_fb_modedb {
+ struct fb_var_screeninfo *modedb;
+ __u32 modedb_len;
+};
+
#ifdef CONFIG_COMPAT
+struct tegra_fb_modedb_compat {
__u32 modedb;
-#else
- struct fb_var_screeninfo *modedb;
-#endif
__u32 modedb_len;
};
+#define FBIO_TEGRA_GET_MODEDB_COMPAT \
+ _IOWR('F', 0x42, struct tegra_fb_modedb_compat)
+#endif
+
#define FBIO_TEGRA_GET_MODEDB _IOWR('F', 0x42, struct tegra_fb_modedb)
#endif