mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
drivers/of/base.c: Add of_property_read_u64_index
There is of_property_read_u32_index but no u64 variant. This patch adds one similar to the u32 version for u64. Signed-off-by: Alistair Popple <alistair@popple.id.au> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
f6f9195ba0
commit
2475a2b6c8
2 changed files with 34 additions and 0 deletions
|
@ -292,6 +292,9 @@ extern int of_property_count_elems_of_size(const struct device_node *np,
|
|||
extern int of_property_read_u32_index(const struct device_node *np,
|
||||
const char *propname,
|
||||
u32 index, u32 *out_value);
|
||||
extern int of_property_read_u64_index(const struct device_node *np,
|
||||
const char *propname,
|
||||
u32 index, u64 *out_value);
|
||||
extern int of_property_read_variable_u8_array(const struct device_node *np,
|
||||
const char *propname, u8 *out_values,
|
||||
size_t sz_min, size_t sz_max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue