commit | 71d115f7b52ab5016a6a6334ff35b1e69d45ea52 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Sat Dec 30 02:00:05 2017 +0900 |
committer | Jaehoon Chung <jh80.chung@samsung.com> | Mon Jan 22 14:11:58 2018 +0900 |
tree | 25dcc283624d0cf8ecc1f44ba789f83fbbffd7e1 | |
parent | 81e383c4499079ee6add8af8da67ae0e0de8c7b4 [diff] |
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>