X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fvideo%2Fof_display_timing.c;h=e393412faf6637788222a4e3f3c8adf473644c62;hb=83fb4e1f93adb50a1c90d1554e72a0d64ce6eb57;hp=6c2fc91aae0b2877b6f74e9d78f0260104d5f08d;hpb=e9ff4433b0a8ca4454cb89f1e6dfa7f95e8769a1;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index 6c2fc91aae0b..e393412faf66 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c @@ -112,7 +112,11 @@ static int of_parse_display_timing(const struct device_node *np, if (!of_property_read_u32(np, "out-face", &val)) dt->face = val; if (!of_property_read_u32(np, "color-mode", &val)) - dt->color_mode = val; + dt->color_mode = val; + if (!of_property_read_u32(np, "screen-width", &val)) + dt->screen_widt = val; + if (!of_property_read_u32(np, "screen-hight", &val)) + dt->screen_hight = val; prop = of_find_property(np, "dsp-lut", &length); if (prop) { dt->dsp_lut = kzalloc(length, GFP_KERNEL);