Re: [PATCH v3 1/2] ASoC: gtm601: add Broadmobi bm818 sound profile

From: Mark Brown
Date: Fri Dec 20 2019 - 08:01:48 EST


On Thu, Dec 19, 2019 at 01:09:43PM -0800, Angus Ainslie (Purism) wrote:

> static int gtm601_platform_probe(struct platform_device *pdev)
> {
> + struct snd_soc_dai_driver *dai_driver;
> +
> + dai_driver = of_device_get_match_data(&pdev->dev);
> +

I was going to apply this but it causes build warnings:

sound/soc/codecs/gtm601.c: In function âgtm601_platform_probeâ:
sound/soc/codecs/gtm601.c:83:13: warning: assignment discards âconstâ qualifier from pointer target type [-Wdiscarded-qualifiers]
dai_driver = of_device_get_match_data(&pdev->dev);
^

Attachment: signature.asc
Description: PGP signature