OF_getprop.9: update OF_hasprop() signature
The return type has been converted to a bool.
Reported by: manu
Sponsored by: The FreeBSD Foundation
Fixes: b60cd486a6 ("ofw: bool-ify OF_hasprop()")
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd June 23, 2018
|
.Dd April 16, 2026
|
||||||
.Dt OF_GETPROP 9
|
.Dt OF_GETPROP 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
.Ft ssize_t
|
.Ft ssize_t
|
||||||
.Fn OF_getencprop "phandle_t node" "const char *prop" \
|
.Fn OF_getencprop "phandle_t node" "const char *prop" \
|
||||||
"pcell_t *buf" "size_t len"
|
"pcell_t *buf" "size_t len"
|
||||||
.Ft int
|
.Ft bool
|
||||||
.Fn OF_hasprop "phandle_t node" "const char *propname"
|
.Fn OF_hasprop "phandle_t node" "const char *propname"
|
||||||
.Ft ssize_t
|
.Ft ssize_t
|
||||||
.Fn OF_searchprop "phandle_t node" "const char *propname" \
|
.Fn OF_searchprop "phandle_t node" "const char *propname" \
|
||||||
@@ -138,11 +138,15 @@ if the property does not exist.
|
|||||||
must be a multiple of 4.
|
must be a multiple of 4.
|
||||||
.Pp
|
.Pp
|
||||||
.Fn OF_hasprop
|
.Fn OF_hasprop
|
||||||
returns 1 if the device node
|
returns
|
||||||
|
.Dv true
|
||||||
|
if the device node
|
||||||
.Fa node
|
.Fa node
|
||||||
has a property specified by
|
has a property specified by
|
||||||
.Fa propname ,
|
.Fa propname ,
|
||||||
and zero if the property does not exist.
|
and
|
||||||
|
.Dv false
|
||||||
|
if the property does not exist.
|
||||||
.Pp
|
.Pp
|
||||||
.Fn OF_searchprop
|
.Fn OF_searchprop
|
||||||
recursively looks for the property specified by
|
recursively looks for the property specified by
|
||||||
|
|||||||
Reference in New Issue
Block a user