Skip to content

Commit

Permalink
ASoC: Name jack GPIOs based on jack not codec
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 3, 2011
1 parent f94f3cb commit 363618f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
gpio_handler,
IRQF_TRIGGER_RISING |
IRQF_TRIGGER_FALLING,
jack->codec->dev->driver->name,
gpios[i].name,
&gpios[i]);
if (ret)
goto err;
Expand Down

0 comments on commit 363618f

Please sign in to comment.