]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Support writing a boolean
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:44 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
commitd9216c8683fced4cbf6d437b4357c9368bf1bf86
treeb988723a63eb879277b2e1d0437c370945e7ed27
parent62b1db33778611a3023d1e3a98e869b495edc9ca
dm: core: Support writing a boolean

Add functions to write a boolean property. This involves deleting it if
the value is false.

Add a new ofnode_has_property() as well. Add a comment about the behaviour
of of_read_property() when the property value is empty.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c