diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2018-07-06 14:50:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-07 17:20:47 +0200 |
commit | 448a5a552f336bd7b847b1951ffd15eb2e7167a3 (patch) | |
tree | 600f0b44485f18b85c27ea5edafc108382b5b9ff /lib | |
parent | kernfs: Replace strncpy with memcpy (diff) | |
download | linux-448a5a552f336bd7b847b1951ffd15eb2e7167a3.tar.xz linux-448a5a552f336bd7b847b1951ffd15eb2e7167a3.zip |
drivers: base: cacheinfo: use OF property_read_u32 instead of get_property,read_number
of_property_read_u32 searches for a property in a device node and read
a 32-bit value from it. Instead of using of_get_property to get the
property and then read 32-bit value using of_read_number, we can
simplify it by using of_property_read_u32.
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions