From 5413f5c9a1c3183711f1062ff19dfda39cfb711f Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Thu, 17 Nov 2016 18:05:19 +1100 Subject: tree-wide: use dt_add_property_u64s() where we can A few places (mostly old code) were using: add_property_cells(hi32(number), lo32(number)); This patch converts them to use the helper rather than doing it manually. Signed-off-by: Oliver O'Halloran Reviewed-by: Vasant Hegde Signed-off-by: Stewart Smith --- hdata/spira.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hdata/spira.c') diff --git a/hdata/spira.c b/hdata/spira.c index f3b3502..f87aa27 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -267,8 +267,7 @@ static struct dt_node *add_xscom_node(uint64_t base, uint32_t hw_id, freq = dt_prop_get_u64_def(dt_root, "nest-frequency", 0); freq /= 4; if (freq) - dt_add_property_cells(node, "bus-frequency", - hi32(freq), lo32(freq)); + dt_add_property_u64(node, "bus-frequency", freq); return node; } @@ -806,8 +805,7 @@ static void add_iplparams_sys_params(const void *iplp, struct dt_node *node) u64 freq = be32_to_cpu(p->nest_freq_mhz); freq *= 1000000; - dt_add_property_cells(dt_root, "nest-frequency", - hi32(freq), lo32(freq)); + dt_add_property_u64(dt_root, "nest-frequency", freq); } } -- cgit v1.1