]> git.sur5r.net Git - u-boot/commit
dm: core: Add ofnode_read_string_count()
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:28 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commit8c293d6ac9c9f698a2b5db8def9d1cef725b5011
treeb1e0018844e958ca5e9eb65e1366071cff79db45
parent7feccfdc45d5708ffd682a025d6d6e8907f1a97a
dm: core: Add ofnode_read_string_count()

This provides a way to find the number of strings in a string list. Add it
and also fix up the comment for ofnode_read_string_index().

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
drivers/core/ofnode.c
include/dm/of_access.h
include/dm/ofnode.h