]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Clean up casting in unflattening path
authorGrant Likely <grant.likely@linaro.org>
Thu, 29 Aug 2013 12:30:35 +0000 (13:30 +0100)
committerGrant Likely <grant.likely@linaro.org>
Fri, 30 Aug 2013 10:34:34 +0000 (11:34 +0100)
commit8079ea851ec0766a9c49e687252910886af591ec
treeea98248fc30bc75fdf146990828587b369e59342
parent7778c7c5fc5b29725c613dd1b35299f68b14789a
of/fdt: Clean up casting in unflattening path

The flat tree unflatting path is using unsigned longs to carry around
virtual address pointers to the device tree and the allocated memory
used to unpack it. This is a little insane since every access to them
needs to be cast to a pointer type before using it. This patch changes
the data type to void* for the 'start' and 'mem' pointers and reworks
the unflattening functions to use those values directly which results in
slightly simpler code.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c