diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-04-01 16:50:43 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-03 08:43:23 -0400 |
commit | 363618f013f2f11a1089b610748beb5de93b8630 (patch) | |
tree | c0fa9e28614f25344dd4fc129e26b1c0b81a022c | |
parent | f94f3cb37a1c4d44dd2070cc4a6165689bda9c92 (diff) |
ASoC: Name jack GPIOs based on jack not codec
snd_soc_jack_gpio has a name field. Use that name when registering the IRQ,
since this is far more informative than the codec driver name. This shows
up in /proc/interrupts.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/soc-jack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index fcab80b36a37..6203a72d57af 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c | |||
@@ -325,7 +325,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, | |||
325 | gpio_handler, | 325 | gpio_handler, |
326 | IRQF_TRIGGER_RISING | | 326 | IRQF_TRIGGER_RISING | |
327 | IRQF_TRIGGER_FALLING, | 327 | IRQF_TRIGGER_FALLING, |
328 | jack->codec->dev->driver->name, | 328 | gpios[i].name, |
329 | &gpios[i]); | 329 | &gpios[i]); |
330 | if (ret) | 330 | if (ret) |
331 | goto err; | 331 | goto err; |