linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] pinctrl: Document pin_config_group_get() return codes like pin_config_get()
@ 2018-07-02 22:59 Douglas Anderson
  2018-07-02 22:59 ` [PATCH 2/3] pinctrl: msm: Fix msm_config_group_get() to be compliant Douglas Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Douglas Anderson @ 2018-07-02 22:59 UTC (permalink / raw)
  To: Bjorn Andersson, Linus Walleij
  Cc: iivanov, swboyd, Douglas Anderson, linux-gpio, linux-kernel

The pinconf_generic_dump_one() function makes the assumption that
pin_config_group_get() should return -EINVAL and -ENOTSUPP just like
pin_config_get() does.  Document that so it's more obvious.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 include/linux/pinctrl/pinconf.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/pinctrl/pinconf.h b/include/linux/pinctrl/pinconf.h
index 09eb80f2574a..8dd85d302b90 100644
--- a/include/linux/pinctrl/pinconf.h
+++ b/include/linux/pinctrl/pinconf.h
@@ -28,7 +28,8 @@ struct seq_file;
  *	is not available on this controller this should return -ENOTSUPP
  *	and if it is available but disabled it should return -EINVAL
  * @pin_config_set: configure an individual pin
- * @pin_config_group_get: get configurations for an entire pin group
+ * @pin_config_group_get: get configurations for an entire pin group; should
+ *	return -ENOTSUPP and -EINVAL using the same rules as pin_config_get.
  * @pin_config_group_set: configure all pins in a group
  * @pin_config_dbg_parse_modify: optional debugfs to modify a pin configuration
  * @pin_config_dbg_show: optional debugfs display hook that will provide
-- 
2.18.0.399.gad0ab374a1-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-08-30 15:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 22:59 [PATCH 1/3] pinctrl: Document pin_config_group_get() return codes like pin_config_get() Douglas Anderson
2018-07-02 22:59 ` [PATCH 2/3] pinctrl: msm: Fix msm_config_group_get() to be compliant Douglas Anderson
2018-07-09 11:15   ` Linus Walleij
2018-07-02 22:59 ` [PATCH 3/3] pinctrl: qcom: spmi-gpio: Fix pmic_gpio_config_get() " Douglas Anderson
2018-07-03  6:09   ` Stephen Boyd
2018-07-09 11:17     ` Linus Walleij
2018-08-30 15:28       ` Doug Anderson
2018-07-09 11:17   ` Linus Walleij
2018-07-09 11:09 ` [PATCH 1/3] pinctrl: Document pin_config_group_get() return codes like pin_config_get() Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).