summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/fb.c
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-01-09 13:20:53 +0100
committerStefan Agner <stefan.agner@toradex.com>2014-01-09 13:24:02 +0100
commitc54b9b8f76bfd8786c6cfbce942c1b1aebcb3ef1 (patch)
tree52518eef27f4b56414b2ea721affc0b5e903681a /drivers/video/tegra/fb.c
parent940e4718d4367ff516e1a4fa8c0fa32b46097298 (diff)
tegra: video: parse multiple modedbs
In order to find a viable resolution we not only parse VESA mode, we also parse CEA (multimedia) modes and our own small modedb (for specific touch screens).
Diffstat (limited to 'drivers/video/tegra/fb.c')
-rw-r--r--drivers/video/tegra/fb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index 575f85ad9653..90d1363ecf9c 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -677,8 +677,11 @@ struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev,
if (option != NULL)
{
- if (!fb_find_mode(&info->var, info, option,
- vesa_modes, VESA_MODEDB_SIZE, NULL, 16)) {
+ if (!strcmp(option, "off")) {
+ ret = -ENODEV;
+ goto err_iounmap_fb;
+ }
+ if (!tegra_fb_find_mode(&info->var, info, option, 16)) {
ret = -EINVAL;
goto err_iounmap_fb;
}