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>
master
Masahiro Yamada 8 years ago committed by Tom Rini
parent 01ae56cfcb
commit 6e67f176bb
  1. 2
      arch/arm/mach-tegra/xusb-padctl-common.c
  2. 4
      drivers/core/device.c
  3. 2
      drivers/net/sun8i_emac.c
  4. 2
      drivers/pinctrl/exynos/pinctrl-exynos.c
  5. 6
      drivers/pinctrl/pinctrl-generic.c
  6. 2
      drivers/video/sunxi_display.c

@ -82,7 +82,7 @@ tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl,
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) {
error("failed to parse \"nvidia,lanes\" property");
return -EINVAL;

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

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

@ -80,7 +80,7 @@ int exynos_pinctrl_set_state(struct udevice *dev, struct udevice *config)
* refer to the following document for the pinctrl bindings
* 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)
return -EINVAL;

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

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

Loading…
Cancel
Save