Support setting FDT properties with optional values.
authorGerald Van Baren <vanbaren@cideas.com>
Sat, 5 Jan 2008 19:52:04 +0000 (14:52 -0500)
committerGerald Van Baren <vanbaren@cideas.com>
Tue, 8 Jan 2008 20:03:13 +0000 (15:03 -0500)
commitea6d8be153ceaf16958f8009cea6d75f3ff58d92
tree87a68ee393eabc90ec35ac991a775d1753f82b96
parent22fb2246df91bfc840d87f0c5910818bad55577a
Support setting FDT properties with optional values.

Fix a bug found and documented by Bartlomiej Sieka where the optional
value on "fdt set <path> <prop> [<val>]" wasn't optional.

=> fdt mknode / testnode
=> fdt print /testnode
testnode {
};
=> fdt set /testnode testprop
=> fdt print /testnode
testnode {
        testprop;
};

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
common/cmd_fdt.c