diff mbox

ASoC: jack: Clarify GPIO descriptor lookup in struct snd_soc_jack_gpio doc

Message ID 1401188058-18129-1-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Commit 83ad152d03b594b6a3fb9f3d313622b491cd6168
Headers show

Commit Message

Jarkko Nikula May 27, 2014, 10:54 a.m. UTC
Clarify struct snd_soc_jack_gpio documentation for the idx and name fields.
Because name is passed as connection ID to gpiod_get_index() when using GPIO
descriptor defined jack pins it is not only used as a label in debugfs but
also as function name lookup in systems that support functions names for
GPIOs.

Clarify also idx since the index is within the function of the GPIO consumer
device and not within the device itself only.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
 include/sound/soc.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Mark Brown May 27, 2014, 11:03 a.m. UTC | #1
On Tue, May 27, 2014 at 01:54:18PM +0300, Jarkko Nikula wrote:
> Clarify struct snd_soc_jack_gpio documentation for the idx and name fields.
> Because name is passed as connection ID to gpiod_get_index() when using GPIO
> descriptor defined jack pins it is not only used as a label in debugfs but
> also as function name lookup in systems that support functions names for
> GPIOs.

Applied, thanks.
diff mbox

Patch

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 15ee2f71b92e..72e056529745 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -599,9 +599,11 @@  struct snd_soc_jack_zone {
  * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
  *
  * @gpio:         legacy gpio number
- * @idx:          gpio descriptor index within the GPIO consumer device
+ * @idx:          gpio descriptor index within the function of the GPIO
+ *                consumer device
  * @gpiod_dev     GPIO consumer device
- * @name:         gpio name
+ * @name:         gpio name. Also as connection ID for the GPIO consumer
+ *                device function name lookup
  * @report:       value to report when jack detected
  * @invert:       report presence in low state
  * @debouce_time: debouce time in ms