librtas: fix for sc_platform_dump endian handling

Some mistakes were made in adding little endian support for the
sc_platform_dump function. As the values being handled are 64-bit integers,
it makes much more sense to use the 64-bit byteswap function. The
endianness of seq_next also needs to be handled.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
get_sensor, set_sensor: Handle big endian data in little endian

This patch handles big endian location code length data in little endian
platform. This enables the tools to work on little endian platform after
having passed big endian buffer data.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>