]> git.karo-electronics.de Git - karo-tx-linux.git/commit
of: assume big-endian properties, adding conversions where necessary
authorJeremy Kerr <jeremy.kerr@canonical.com>
Sat, 30 Jan 2010 08:45:26 +0000 (01:45 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 9 Feb 2010 15:34:10 +0000 (08:34 -0700)
commit337148812f97368a8ec4a69f1691e4c5ce3af494
tree3fa2e5477c657cb2ebc40db9182d0989a5d60e13
parent2e89e685a8fd0e8334de967739d11e2e28c1a4dd
of: assume big-endian properties, adding conversions where necessary

Properties in the device tree are specified as big-endian. At present,
the only platforms to support device trees are also big-endian, so we've
been acessing the properties as raw values.

We'd like to add device tree support to little-endian platforms too, so
add endian conversion to the sites where we access property values in
the common of code.

Compiled on powerpc (ppc44x_defconfig & ppc64_defconfig) and arm (fdt
support only for now).

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c
drivers/of/fdt.c
drivers/of/gpio.c
drivers/of/of_i2c.c
drivers/of/of_mdio.c
drivers/of/of_spi.c