of: Add of_flat_dt_get_machine_name to device tree library
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Oct 2014 14:57:37 +0000 (15:57 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 13 Dec 2014 15:13:46 +0000 (16:13 +0100)
commit178a73c613e95f8103c53071188b778752dc4d3a
treeaeb4942fb5fd9f573f4ee987fa5fc4176cb5fdef
parent0f298a2ba35c2390fcd734fa6e020a196db7fc23
of: Add of_flat_dt_get_machine_name to device tree library

Add a function to retreive the machine name from the device tree once
the device tree has been unflattened.  This is particularly useful for
multi-flavored virtual machine boards (like the Xen, virt, and ranchu
boards) where it is useful for user space to know which flavor of a
device-tree driven board you are running.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
drivers/of/fdt.c
include/linux/of_fdt.h