mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-26 23:36:17 -04:00
libfdt: Forgot one function when cleaning the namespace
In commit b6d80a20fc, we renamed all
libfdt functions to be prefixed with fdt_ or _fdt_ to minimise the
chance of collisions with things from whatever package libfdt is
embedded in, pulled into the libfdt build via that environment's
libfdt_env.h.
Except... I missed one. This patch applies the same treatment to
_stringlist_contains(). While we're at it, also make it static since
it's only used in the same file.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
52c356d81b
commit
d5653618d2
1 changed files with 3 additions and 2 deletions
|
|
@ -408,7 +408,8 @@ int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle)
|
||||||
&phandle, sizeof(phandle));
|
&phandle, sizeof(phandle));
|
||||||
}
|
}
|
||||||
|
|
||||||
int _stringlist_contains(const char *strlist, int listlen, const char *str)
|
static int _fdt_stringlist_contains(const char *strlist, int listlen,
|
||||||
|
const char *str)
|
||||||
{
|
{
|
||||||
int len = strlen(str);
|
int len = strlen(str);
|
||||||
const char *p;
|
const char *p;
|
||||||
|
|
@ -434,7 +435,7 @@ int fdt_node_check_compatible(const void *fdt, int nodeoffset,
|
||||||
prop = fdt_getprop(fdt, nodeoffset, "compatible", &len);
|
prop = fdt_getprop(fdt, nodeoffset, "compatible", &len);
|
||||||
if (!prop)
|
if (!prop)
|
||||||
return len;
|
return len;
|
||||||
if (_stringlist_contains(prop, len, compatible))
|
if (_fdt_stringlist_contains(prop, len, compatible))
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue