Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9fadeef authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Grant Likely
Browse files

of: use __be32 types for big-endian device tree data



Use the sparse annotations so we can keep track of endianness.

Signed-off-by: default avatarJeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 52f6537c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ static int of_bus_pci_translate(u32 *addr, u64 offset, int na)
const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size,
			unsigned int *flags)
{
	const u32 *prop;
	const __be32 *prop;
	unsigned int psize;
	struct device_node *parent;
	struct of_bus *bus;
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ DEFINE_RWLOCK(devtree_lock);

int of_n_addr_cells(struct device_node *np)
{
	const int *ip;
	const __be32 *ip;

	do {
		if (np->parent)
@@ -49,7 +49,7 @@ EXPORT_SYMBOL(of_n_addr_cells);

int of_n_size_cells(struct device_node *np)
{
	const int *ip;
	const __be32 *ip;

	do {
		if (np->parent)