mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
[SPARC64]: Add of_getintprop_default().
This encodes a common idiomatic coding pattern used when dealing with integer properties. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6760d28bc6
commit
6d307724cb
2 changed files with 15 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ extern struct device_node *of_get_next_child(const struct device_node *node,
|
|||
extern struct property *of_find_property(struct device_node *np,
|
||||
const char *name,
|
||||
int *lenp);
|
||||
extern int of_getintprop_default(struct device_node *np,
|
||||
const char *name,
|
||||
int def);
|
||||
|
||||
extern void prom_build_devicetree(void);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue