convert_dt_node_props: LE support and cleanup
convert_dt_node_props: LE support and cleanup

convert_dt_node_props command is used by the rtas_errd to
convert drc_index to name and vice-versa. The command reads
from the /proc/device-tree files which contain BE data, hence
need special care to convert the data to host format before
we process it.

NOTE: The thumb rule we follow is :
* Keep all the data used in the tools in host format.
* Convert anything we push-to/pull-from PAPAR sources.

Signed-off-by: Suzuki K. Poulose <2d5cd350c7a48263c670a6374c5c55bca8d1a68a@in.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag