diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2018-08-07 11:32:25 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-29 10:42:02 +0200 |
commit | d2f7a822041d3ad7a958b8b87557e09445a29701 (patch) | |
tree | ffa8e1c109184cc2b63a0f2891ce1666bb058b2b /drivers/pinctrl/cirrus | |
parent | pinctrl: madera: Set is_generic (diff) | |
download | linux-d2f7a822041d3ad7a958b8b87557e09445a29701.tar.xz linux-d2f7a822041d3ad7a958b8b87557e09445a29701.zip |
pinctrl: madera: Return ENOTSUPP for unsupported pin attributes
The pin_config_[get|set] functions should return ENOTSUPP if
the requested attribute isn't supported.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/cirrus')
-rw-r--r-- | drivers/pinctrl/cirrus/pinctrl-madera-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/cirrus/pinctrl-madera-core.c b/drivers/pinctrl/cirrus/pinctrl-madera-core.c index 4f9b7e3b7cf2..4ba56ca5a9be 100644 --- a/drivers/pinctrl/cirrus/pinctrl-madera-core.c +++ b/drivers/pinctrl/cirrus/pinctrl-madera-core.c @@ -801,7 +801,7 @@ static int madera_pin_conf_get(struct pinctrl_dev *pctldev, unsigned int pin, result = 1; break; default: - break; + return -ENOTSUPP; } *config = pinconf_to_config_packed(param, result); @@ -905,7 +905,7 @@ static int madera_pin_conf_set(struct pinctrl_dev *pctldev, unsigned int pin, conf[1] &= ~MADERA_GP1_DIR; break; default: - break; + return -ENOTSUPP; } ++configs; |