aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2014-05-27 06:54:18 -0400
committerMark Brown <broonie@linaro.org>2014-05-27 07:03:44 -0400
commit83ad152d03b594b6a3fb9f3d313622b491cd6168 (patch)
tree9568ec68b09ba1e750a31a87fa3ef88fdd9161e3
parentf025d3b9c64e1f7feb75a559d4a12f5f8c6a4a25 (diff)
ASoC: jack: Clarify GPIO descriptor lookup in struct snd_soc_jack_gpio doc
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> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--include/sound/soc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 61bea882a74b..a2408a5b96a7 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -597,9 +597,11 @@ struct snd_soc_jack_zone {
597 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection 597 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection
598 * 598 *
599 * @gpio: legacy gpio number 599 * @gpio: legacy gpio number
600 * @idx: gpio descriptor index within the GPIO consumer device 600 * @idx: gpio descriptor index within the function of the GPIO
601 * consumer device
601 * @gpiod_dev GPIO consumer device 602 * @gpiod_dev GPIO consumer device
602 * @name: gpio name 603 * @name: gpio name. Also as connection ID for the GPIO consumer
604 * device function name lookup
603 * @report: value to report when jack detected 605 * @report: value to report when jack detected
604 * @invert: report presence in low state 606 * @invert: report presence in low state
605 * @debouce_time: debouce time in ms 607 * @debouce_time: debouce time in ms