]> git.baikalelectronics.ru Git - uboot.git/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)
commitf66eb990dc99b1748ccc6616ed95875dce9c9185
treeb1e0018844e958ca5e9eb65e1366071cff79db45
parent3185dce5ec80c02f34395993d24bd18b7ff95c4d
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