of: make of_fdt_is_compatible() static
PATCH 1/1 of: make of_fdt_is_compatible() static
From: Frank Rowand <frank.rowand-7U/[email protected]>
The callers of of_fdt_is_compatible() are all in fdt.c so make it static.
Signed-off-by Frank Rowand <frank.rowand-7U/[email protected]>
--- drivers/of/fdt.c | 2 +- include/linux/of_fdt.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)
drivers/of/fdt.c +1 -1
@@ -91,7 +91,7 @@ void of_fdt_limit_memory(int limit)* On match, returns a non-zero value with smaller values returned for more * specific compatible values. */ -int of_fdt_is_compatible (const void *blob, +static int of_fdt_is_compatible (const void *blob,unsigned long node,const char *compat) {const char *cp;
include/linux/of_fdt.h +0 -3
@@ -31,9 +31,6 @@ extern void *of_fdt_get_property(const void *blob,unsigned long node, const char *name, int *size); -extern int of_fdt_is_compatible (const void *blob, -unsigned long node, -const char *compat);extern bool of_fdt_is_big_endian (const void *blob,unsigned long node); extern int of_fdt_match(const void *blob, unsigned long node,
Signature · 6 lines
Frank Rowand <frank.rowand-7U/[email protected]> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Rob Herring
maintainerQuoted 10 lines · On Tue, Jun 20, 2017 at 04:38:28PM -0700…
From: Frank Rowand <frank.rowand-7U/[email protected]>
The callers of
of_fdt_is_compatible()are all infdt.cso make it static.Signed-off-by Frank Rowand <frank.rowand-7U/[email protected]>--- drivers/of/fdt.c | 2 +- include/linux/of_fdt.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)
Applied.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html