Commit 47f4e0c1 authored by Simon Horman's avatar Simon Horman

Merge branch 'fixes' of...

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl into pinmux-base
parents a9324f6b bf4d7be5
...@@ -193,7 +193,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip) ...@@ -193,7 +193,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
if (!np) if (!np)
return; return;
do { for (;; index++) {
ret = of_parse_phandle_with_args(np, "gpio-ranges", ret = of_parse_phandle_with_args(np, "gpio-ranges",
"#gpio-range-cells", index, &pinspec); "#gpio-range-cells", index, &pinspec);
if (ret) if (ret)
...@@ -211,8 +211,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip) ...@@ -211,8 +211,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
if (ret) if (ret)
break; break;
}
} while (index++);
} }
#else #else
......
...@@ -622,7 +622,7 @@ static const struct file_operations pinconf_dbg_pinname_fops = { ...@@ -622,7 +622,7 @@ static const struct file_operations pinconf_dbg_pinname_fops = {
static int pinconf_dbg_state_print(struct seq_file *s, void *d) static int pinconf_dbg_state_print(struct seq_file *s, void *d)
{ {
if (strlen(dbg_state_name)) if (strlen(dbg_state_name))
seq_printf(s, "%s\n", dbg_pinname); seq_printf(s, "%s\n", dbg_state_name);
else else
seq_printf(s, "No pin state set\n"); seq_printf(s, "No pin state set\n");
return 0; return 0;
......
...@@ -90,7 +90,7 @@ static inline void pinconf_init_device_debugfs(struct dentry *devroot, ...@@ -90,7 +90,7 @@ static inline void pinconf_init_device_debugfs(struct dentry *devroot,
* pin config. * pin config.
*/ */
#ifdef CONFIG_GENERIC_PINCONF #if defined(CONFIG_GENERIC_PINCONF) && defined(CONFIG_DEBUG_FS)
void pinconf_generic_dump_pin(struct pinctrl_dev *pctldev, void pinconf_generic_dump_pin(struct pinctrl_dev *pctldev,
struct seq_file *s, unsigned pin); struct seq_file *s, unsigned pin);
......
...@@ -422,7 +422,7 @@ static u8 abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip, ...@@ -422,7 +422,7 @@ static u8 abx500_get_mode(struct pinctrl_dev *pctldev, struct gpio_chip *chip,
} }
/* check if pin use AlternateFunction register */ /* check if pin use AlternateFunction register */
if ((af.alt_bit1 == UNUSED) && (af.alt_bit1 == UNUSED)) if ((af.alt_bit1 == UNUSED) && (af.alt_bit2 == UNUSED))
return mode; return mode;
/* /*
* if pin GPIOSEL bit is set and pin supports alternate function, * if pin GPIOSEL bit is set and pin supports alternate function,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment