diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-09-02 17:52:43 -0700 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-09-29 15:21:45 +0200 |
commit | baa6a9d258854237e5c1ff793f0e8a5cf1add172 (patch) | |
tree | be2599fd752b8de485df35d46e162375284dbbf9 | |
parent | 667e6e99538f02ff54eda6145e9cb943c3a91b1c (diff) |
video: fbdev: mxsfb: honor native-mode
Honor the native-mode property by adding only that mode to the
mode list. With that we loose the list of modes, but we currently
don't make use of it anyway. Also, the mode list lacks the pixel
clock polarity information since struct fb_videomode does not store
this information.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | drivers/video/fbdev/mxsfb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c index 64fbf77f852a..2472b7370533 100644 --- a/drivers/video/fbdev/mxsfb.c +++ b/drivers/video/fbdev/mxsfb.c @@ -1174,6 +1174,10 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host) struct videomode vm; struct fb_videomode fb_vm; + /* Only consider native mode */ + if (i != timings->native_mode) + continue; + ret = videomode_from_timings(timings, &vm, i); if (ret < 0) goto put_display_node; |