Fix codying style broken by recent libfdt sync

Commit b02e4044ff ("libfdt: Bring in upstream stringlist
functions") broke codying style in some places especially
by inserting an extra whitespace before fdt_stringlist_count().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Masahiro Yamada 2016-10-17 20:43:01 +09:00 committed by Tom Rini
parent 01ae56cfcb
commit 6e67f176bb
6 changed files with 9 additions and 9 deletions

View file

@ -82,7 +82,7 @@ tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl,
group->name = fdt_get_name(fdt, node, &len); group->name = fdt_get_name(fdt, node, &len);
len = fdt_stringlist_count(fdt, node, "nvidia,lanes"); len = fdt_stringlist_count(fdt, node, "nvidia,lanes");
if (len < 0) { if (len < 0) {
error("failed to parse \"nvidia,lanes\" property"); error("failed to parse \"nvidia,lanes\" property");
return -EINVAL; return -EINVAL;

View file

@ -698,8 +698,8 @@ fdt_addr_t dev_get_addr_name(struct udevice *dev, const char *name)
#if CONFIG_IS_ENABLED(OF_CONTROL) #if CONFIG_IS_ENABLED(OF_CONTROL)
int index; int index;
index = fdt_stringlist_search(gd->fdt_blob, dev->of_offset, "reg-names", index = fdt_stringlist_search(gd->fdt_blob, dev->of_offset,
name); "reg-names", name);
if (index < 0) if (index < 0)
return index; return index;

View file

@ -457,7 +457,7 @@ static int parse_phy_pins(struct udevice *dev)
int pin; int pin;
pin_name = fdt_stringlist_get(gd->fdt_blob, offset, pin_name = fdt_stringlist_get(gd->fdt_blob, offset,
"allwinner,pins", i, NULL); "allwinner,pins", i, NULL);
if (!pin_name) if (!pin_name)
break; break;
if (pin_name[0] != 'P') if (pin_name[0] != 'P')

View file

@ -80,7 +80,7 @@ int exynos_pinctrl_set_state(struct udevice *dev, struct udevice *config)
* refer to the following document for the pinctrl bindings * refer to the following document for the pinctrl bindings
* linux/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt * linux/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
*/ */
count = fdt_stringlist_count(fdt, node, "samsung,pins"); count = fdt_stringlist_count(fdt, node, "samsung,pins");
if (count <= 0) if (count <= 0)
return -EINVAL; return -EINVAL;

View file

@ -306,12 +306,12 @@ static int pinctrl_generic_set_state_subnode(struct udevice *dev,
const char *name; const char *name;
int strings_count, selector, i, ret; int strings_count, selector, i, ret;
strings_count = fdt_stringlist_count(fdt, node, subnode_target_type); strings_count = fdt_stringlist_count(fdt, node, subnode_target_type);
if (strings_count < 0) { if (strings_count < 0) {
subnode_target_type = "groups"; subnode_target_type = "groups";
is_group = true; is_group = true;
strings_count = fdt_stringlist_count(fdt, node, strings_count = fdt_stringlist_count(fdt, node,
subnode_target_type); subnode_target_type);
if (strings_count < 0) { if (strings_count < 0) {
/* skip this node; may contain config child nodes */ /* skip this node; may contain config child nodes */
return 0; return 0;

View file

@ -1563,7 +1563,7 @@ int sunxi_simplefb_setup(void *blob)
"allwinner,simple-framebuffer"); "allwinner,simple-framebuffer");
while (offset >= 0) { while (offset >= 0) {
ret = fdt_stringlist_search(blob, offset, "allwinner,pipeline", ret = fdt_stringlist_search(blob, offset, "allwinner,pipeline",
pipeline); pipeline);
if (ret == 0) if (ret == 0)
break; break;
offset = fdt_node_offset_by_compatible(blob, offset, offset = fdt_node_offset_by_compatible(blob, offset,