commit | 3ab48f62230b6753bf5535655c40e3b975825bd9 | [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 | 557767ed29968af0294e3aae48433e5d5a298e0b [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>