Chen-Yu Tsai 230c5b4423 drm/panel: simple: Check against num_timings when setting preferred for timing
In the loop on .timings, we should check .num_timings to see if it's the
only mode specified, not .num_modes, which should be used with .modes.

Fixes: cda553725c92 ("drm/panel: simple: Set appropriate mode type")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-12-06 16:47:07 +01:00
..
2016-09-19 11:22:08 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:22:08 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:22:08 +02:00
2016-09-28 11:23:15 +10:00
2016-09-28 12:08:49 +10:00
2016-09-19 15:04:15 +02:00
2016-09-22 00:04:02 -07:00
2016-09-21 13:33:50 +02:00
2016-09-28 12:08:49 +10:00
2016-09-19 11:21:42 +02:00
2016-09-22 00:01:56 -07:00
2016-09-19 11:22:08 +02:00
2016-09-06 13:56:41 -04:00
2016-09-19 11:21:42 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-22 00:04:02 -07:00