Message ID | 1425465717-27747-2-git-send-email-svarbanov@mm-sol.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed 04 Mar 02:41 PST 2015, Stanimir Varbanov wrote: > This makes the pinctrl driver to use the generic pinconf > interface. Mainly it gives us a way to use debugfs to dump > group configurations. > > Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 03/04/15 02:41, Stanimir Varbanov wrote: > This makes the pinctrl driver to use the generic pinconf > interface. Mainly it gives us a way to use debugfs to dump > group configurations. > > Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
On Wed, Mar 4, 2015 at 11:41 AM, Stanimir Varbanov <svarbanov@mm-sol.com> wrote: > This makes the pinctrl driver to use the generic pinconf > interface. Mainly it gives us a way to use debugfs to dump > group configurations. > > Signed-off-by: Stanimir Varbanov <svarbanov@mm-sol.com> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Patch applied with ACKs. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index a535f9c..d36e511 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -197,7 +197,6 @@ static int msm_config_reg(struct msm_pinctrl *pctrl, *mask = 1; break; default: - dev_err(pctrl->dev, "Invalid config param %04x\n", param); return -ENOTSUPP; } @@ -262,9 +261,7 @@ static int msm_config_group_get(struct pinctrl_dev *pctldev, arg = !!(val & BIT(g->in_bit)); break; default: - dev_err(pctrl->dev, "Unsupported config parameter: %x\n", - param); - return -EINVAL; + return -ENOTSUPP; } *config = pinconf_to_config_packed(param, arg); @@ -357,6 +354,7 @@ static int msm_config_group_set(struct pinctrl_dev *pctldev, } static const struct pinconf_ops msm_pinconf_ops = { + .is_generic = true, .pin_config_group_get = msm_config_group_get, .pin_config_group_set = msm_config_group_set, };