]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: add dev_read_u32()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 29 Dec 2017 17:00:05 +0000 (02:00 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 22 Jan 2018 05:11:58 +0000 (14:11 +0900)
commit3ab48f62230b6753bf5535655c40e3b975825bd9
tree25dcc283624d0cf8ecc1f44ba789f83fbbffd7e1
parent557767ed29968af0294e3aae48433e5d5a298e0b
dm: add dev_read_u32()

dev_read_u32_default() always returns something even when the property
is missing.  So, it is impossible to do nothing in the case.  One
solution is to use ofnode_read_u32() instead, but adding dev_read_u32()
will be helpful.

BTW, Linux has an equvalent function, device_property_read_u32();
it is clearer that it reads a property.  I cannot understand the
behavior of dev_read_u32() from its name.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/core/read.c
include/dm/read.h