[alsa-devel] [PATCH] ASoC: max98357a: request GPIO when device get probed
Mark Brown
broonie at kernel.org
Thu May 9 04:33:36 CEST 2019
On Thu, May 09, 2019 at 12:22:23AM +0800, Tzung-Bi Shih wrote:
> static int max98357a_component_probe(struct snd_soc_component *component)
> {
> - struct gpio_desc *sdmode;
> -
> - sdmode = devm_gpiod_get_optional(component->dev, "sdmode", GPIOD_OUT_LOW);
> - if (IS_ERR(sdmode))
> - return PTR_ERR(sdmode);
> -
> - snd_soc_component_set_drvdata(component, sdmode);
> -
> return 0;
> }
>
This function is now empty so can just be removed entirely. Otherwise
this looks good.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190509/f446c560/attachment.sig>
More information about the Alsa-devel
mailing list