Thread (1 message) 1 message, 1 author, 2012-08-08

RE: [PATCH 5/8] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

From: Tony Prisk <hidden>
Date: 2012-08-08 19:37:24
Also in: linux-arm-kernel, linux-serial

Possibly related (same subject, not in this thread)

On 08/07/2012 07:39 PM, Tony Prisk wrote:
quoted
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device
tree bindings.
quoted
Small change in wm8505-fb.c to support WM8650 framebuffer color
format.
That might warrant a separate patch?
The patch consisted of changing one value in one line and is commented in
the source. I didn't think it justified a separate patch as it has been thoroughly
tested and is unlikely to cause any problems.
quoted
diff --git a/drivers/video/vt8500lcdfb.c b/drivers/video/vt8500lcdfb.c
quoted
+     np = of_find_node_by_name(NULL, "display");
+     if (!np) {
+             pr_err("%s: No display description in Device Tree\n", __func__);
+             ret = -EINVAL;
+             goto failed_free_res;
+     }
I believe that using hard-coded node names is frowned upon. Better would
be to put a phandle into the display controller's node that points at
the node representing the display, e.g.:
Will do.

Regards
Tony Prisk
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help