aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/videomode.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 04:35:16 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-12 09:46:52 -0400
commit694f050650798b82f2c7b9983e80117d58b34bf3 (patch)
tree4d0591ecc0d83fb36bf2a3a3345a4fba7508b565 /drivers/video/videomode.c
parent32ed6ef133f95f960d19e3f3b30246aebf8ecd36 (diff)
videomode: remove timing_entry_index
Display timing's fields have minimum, typical and maximum values. These can be accessed by using timing_entry_index enum, and display_timing_get_value() function. There's no real need for this extra complexity. The values can be accessed more easily by just using the min/typ/max fields. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Diffstat (limited to 'drivers/video/videomode.c')
-rw-r--r--drivers/video/videomode.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/videomode.c b/drivers/video/videomode.c
index 810afff79bc1..a3d95f263cd5 100644
--- a/drivers/video/videomode.c
+++ b/drivers/video/videomode.c
@@ -20,16 +20,16 @@ int videomode_from_timing(const struct display_timings *disp,
20 if (!dt) 20 if (!dt)
21 return -EINVAL; 21 return -EINVAL;
22 22
23 vm->pixelclock = display_timing_get_value(&dt->pixelclock, TE_TYP); 23 vm->pixelclock = dt->pixelclock.typ;
24 vm->hactive = display_timing_get_value(&dt->hactive, TE_TYP); 24 vm->hactive = dt->hactive.typ;
25 vm->hfront_porch = display_timing_get_value(&dt->hfront_porch, TE_TYP); 25 vm->hfront_porch = dt->hfront_porch.typ;
26 vm->hback_porch = display_timing_get_value(&dt->hback_porch, TE_TYP); 26 vm->hback_porch = dt->hback_porch.typ;
27 vm->hsync_len = display_timing_get_value(&dt->hsync_len, TE_TYP); 27 vm->hsync_len = dt->hsync_len.typ;
28 28
29 vm->vactive = display_timing_get_value(&dt->vactive, TE_TYP); 29 vm->vactive = dt->vactive.typ;
30 vm->vfront_porch = display_timing_get_value(&dt->vfront_porch, TE_TYP); 30 vm->vfront_porch = dt->vfront_porch.typ;
31 vm->vback_porch = display_timing_get_value(&dt->vback_porch, TE_TYP); 31 vm->vback_porch = dt->vback_porch.typ;
32 vm->vsync_len = display_timing_get_value(&dt->vsync_len, TE_TYP); 32 vm->vsync_len = dt->vsync_len.typ;
33 33
34 vm->flags = dt->flags; 34 vm->flags = dt->flags;
35 35