mirror of
https://xff.cz/git/u-boot/
synced 2025-10-01 15:31:27 +02:00
lib: fdtdec: Fix whitespace style violations
Fix some whitespace-related style violations in fdtdec.c. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
This commit is contained in:
30
lib/fdtdec.c
30
lib/fdtdec.c
@@ -83,8 +83,9 @@ const char *fdtdec_get_compatible(enum fdt_compat_id id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
|
fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
|
||||||
const char *prop_name, int index, int na, int ns,
|
const char *prop_name, int index, int na,
|
||||||
fdt_size_t *sizep, bool translate)
|
int ns, fdt_size_t *sizep,
|
||||||
|
bool translate)
|
||||||
{
|
{
|
||||||
const fdt32_t *prop, *prop_end;
|
const fdt32_t *prop, *prop_end;
|
||||||
const fdt32_t *prop_addr, *prop_size, *prop_after_size;
|
const fdt32_t *prop_addr, *prop_size, *prop_after_size;
|
||||||
@@ -138,7 +139,8 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
|
fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
|
||||||
int node, const char *prop_name, int index, fdt_size_t *sizep,
|
int node, const char *prop_name,
|
||||||
|
int index, fdt_size_t *sizep,
|
||||||
bool translate)
|
bool translate)
|
||||||
{
|
{
|
||||||
int na, ns;
|
int na, ns;
|
||||||
@@ -164,7 +166,8 @@ fdt_addr_t fdtdec_get_addr_size_auto_parent(const void *blob, int parent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
|
fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
|
||||||
const char *prop_name, int index, fdt_size_t *sizep,
|
const char *prop_name, int index,
|
||||||
|
fdt_size_t *sizep,
|
||||||
bool translate)
|
bool translate)
|
||||||
{
|
{
|
||||||
int parent;
|
int parent;
|
||||||
@@ -191,8 +194,7 @@ fdt_addr_t fdtdec_get_addr_size(const void *blob, int node,
|
|||||||
ns, sizep, false);
|
ns, sizep, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
fdt_addr_t fdtdec_get_addr(const void *blob, int node,
|
fdt_addr_t fdtdec_get_addr(const void *blob, int node, const char *prop_name)
|
||||||
const char *prop_name)
|
|
||||||
{
|
{
|
||||||
return fdtdec_get_addr_size(blob, node, prop_name, NULL);
|
return fdtdec_get_addr_size(blob, node, prop_name, NULL);
|
||||||
}
|
}
|
||||||
@@ -349,8 +351,7 @@ enum fdt_compat_id fdtdec_lookup(const void *blob, int node)
|
|||||||
return COMPAT_UNKNOWN;
|
return COMPAT_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fdtdec_next_compatible(const void *blob, int node,
|
int fdtdec_next_compatible(const void *blob, int node, enum fdt_compat_id id)
|
||||||
enum fdt_compat_id id)
|
|
||||||
{
|
{
|
||||||
return fdt_node_offset_by_compatible(blob, node, compat_names[id]);
|
return fdt_node_offset_by_compatible(blob, node, compat_names[id]);
|
||||||
}
|
}
|
||||||
@@ -370,8 +371,8 @@ int fdtdec_next_compatible_subnode(const void *blob, int node,
|
|||||||
return -FDT_ERR_NOTFOUND;
|
return -FDT_ERR_NOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
int fdtdec_next_alias(const void *blob, const char *name,
|
int fdtdec_next_alias(const void *blob, const char *name, enum fdt_compat_id id,
|
||||||
enum fdt_compat_id id, int *upto)
|
int *upto)
|
||||||
{
|
{
|
||||||
#define MAX_STR_LEN 20
|
#define MAX_STR_LEN 20
|
||||||
char str[MAX_STR_LEN + 20];
|
char str[MAX_STR_LEN + 20];
|
||||||
@@ -393,7 +394,8 @@ int fdtdec_next_alias(const void *blob, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int fdtdec_find_aliases_for_id(const void *blob, const char *name,
|
int fdtdec_find_aliases_for_id(const void *blob, const char *name,
|
||||||
enum fdt_compat_id id, int *node_list, int maxcount)
|
enum fdt_compat_id id, int *node_list,
|
||||||
|
int maxcount)
|
||||||
{
|
{
|
||||||
memset(node_list, '\0', sizeof(*node_list) * maxcount);
|
memset(node_list, '\0', sizeof(*node_list) * maxcount);
|
||||||
|
|
||||||
@@ -402,7 +404,8 @@ int fdtdec_find_aliases_for_id(const void *blob, const char *name,
|
|||||||
|
|
||||||
/* TODO: Can we tighten this code up a little? */
|
/* TODO: Can we tighten this code up a little? */
|
||||||
int fdtdec_add_aliases_for_id(const void *blob, const char *name,
|
int fdtdec_add_aliases_for_id(const void *blob, const char *name,
|
||||||
enum fdt_compat_id id, int *node_list, int maxcount)
|
enum fdt_compat_id id, int *node_list,
|
||||||
|
int maxcount)
|
||||||
{
|
{
|
||||||
int name_len = strlen(name);
|
int name_len = strlen(name);
|
||||||
int nodes[maxcount];
|
int nodes[maxcount];
|
||||||
@@ -641,7 +644,8 @@ int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name)
|
|||||||
* @return pointer to cell, which is only valid if err == 0
|
* @return pointer to cell, which is only valid if err == 0
|
||||||
*/
|
*/
|
||||||
static const void *get_prop_check_min_len(const void *blob, int node,
|
static const void *get_prop_check_min_len(const void *blob, int node,
|
||||||
const char *prop_name, int min_len, int *err)
|
const char *prop_name, int min_len,
|
||||||
|
int *err)
|
||||||
{
|
{
|
||||||
const void *cell;
|
const void *cell;
|
||||||
int len;
|
int len;
|
||||||
|
Reference in New Issue
Block a user