aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-02-24 11:12:50 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-02-24 11:12:50 +1100
commit397d5ef0203ce4fa59dae5142645d364412dc962 (patch)
tree427414ed2fa816e9aafbeaf91e82f03897a0d751 /util.h
parent69a1bd6ad3f9272b3db36e6415864a1fb6af4b9d (diff)
downloaddtc-397d5ef0203ce4fa59dae5142645d364412dc962.zip
dtc-397d5ef0203ce4fa59dae5142645d364412dc962.tar.gz
dtc-397d5ef0203ce4fa59dae5142645d364412dc962.tar.bz2
libfdt: Add fdt_setprop_empty()
Device trees can contain empty (zero length) properties, which are often used as boolean flags. These can already be created using fdt_setprop() passing a length of zero and a pointer which is ignored. It is safe to pass NULL, but that may not be obvious from the interface. To make it clearer, add an fdt_setprop_empty() helper macro. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions