Thread (21 messages) 21 messages, 4 authors, 2013-05-31

Re: [PATCH v3 1/8] video: xilinxfb: Fix OF probing on little-endian systems

From: Timur Tabi <hidden>
Date: 2013-05-31 13:05:19
Also in: linux-devicetree, lkml

On 05/31/2013 07:55 AM, Michal Simek wrote:
quoted hunk ↗ jump to hunk
-	p = (u32 *)of_get_property(op->dev.of_node, "xlnx,dcr-splb-slave-if", NULL);
-	tft_access = p ? *p : 0;
+	of_property_read_u32(op->dev.of_node, "xlnx,dcr-splb-slave-if",
+			     &tft_access);
This is okay, but just FYI, you could instead have just used be32_to_cpup().

-- 
Timur Tabi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help