dt: add helpers for multi-cell adds
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 10:47:57 +0000 (12:47 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:46 +0000 (01:04 +0200)
commit7ae2291e8e0f34ac520044c8af0437a701e1c967
treecaedcc8151beff6f64e61da3bdfef2a4a9293ac5
parentc640d088349acaf23161e7afb3dfeb5d6a7007f1
dt: add helpers for multi-cell adds

We have device tree helpers that allow us to create single cell (u32)
wide properties. However, when creating properties that contain an array of
cells, we need to jump through hoops, manually passing in an array with
converted endianness.

To ease the pain of this, create a generic macro helper that allows us
to pass the cells as arguments.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
device_tree.h