videomodes: add helper function to convert from ctfb to display_timing
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Wed, 8 Apr 2020 15:10:11 +0000 (17:10 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:54:43 +0000 (12:54 +0200)
commit10374da7778a6521778c08864379b9b8f0d2573e
tree1218a4c3ed0ac186db176c038ef319d3123a4cb3
parentecd8497bcb655390c77928408ba28b22886b286a
videomodes: add helper function to convert from ctfb to display_timing

This function converts from "struct ctf_res_modes" to
"struct display_timing".

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
drivers/video/videomodes.c
drivers/video/videomodes.h