Commit e0e31695 authored by Jan Kundrát's avatar Jan Kundrát Committed by Linus Walleij

pinctrl: mcp23s08: Do not complain about unsupported params

It is expected that some of these operations won't work on each and
every HW. Previously, even a simple `cat
/sys/kernel/debug/pinctrl/spi1.1/pinconf-pins` caused excessive dmesg
output.
Signed-off-by: default avatarJan Kundrát <jan.kundrat@cesnet.cz>
Cc: Phil Reid <preid@electromag.com.au>
Cc: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 48f6ae0d
...@@ -266,7 +266,6 @@ static int mcp_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, ...@@ -266,7 +266,6 @@ static int mcp_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin,
status = (data & BIT(pin)) ? 1 : 0; status = (data & BIT(pin)) ? 1 : 0;
break; break;
default: default:
dev_err(mcp->dev, "Invalid config param %04x\n", param);
return -ENOTSUPP; return -ENOTSUPP;
} }
...@@ -293,7 +292,7 @@ static int mcp_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, ...@@ -293,7 +292,7 @@ static int mcp_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
ret = mcp_set_bit(mcp, MCP_GPPU, pin, arg); ret = mcp_set_bit(mcp, MCP_GPPU, pin, arg);
break; break;
default: default:
dev_err(mcp->dev, "Invalid config param %04x\n", param); dev_dbg(mcp->dev, "Invalid config param %04x\n", param);
return -ENOTSUPP; return -ENOTSUPP;
} }
} }
......
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