Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1311777
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3] ASoC: pcm179x: Split into core and SPI parts |
| Date | 2016-01-18 21:00 +0100 |
| Message-ID | <qSo83-5hQ-3@gated-at.bofh.it> (permalink) |
| References | <qSknL-2GX-5@gated-at.bofh.it> <qSknM-2GX-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jan 18, 2016 at 04:57:35PM +0100, Jacob Siverskog wrote:
> The pcm179x family supports both SPI and I2C for configuration. This
> patch splits the driver into core and SPI parts, in preparation for
> I2C support.
>
> Reviewed-by: Johan Hovold <johan@kernel.org>
> Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
> ---
> +const struct of_device_id pcm179x_of_match[] = {
Missing static keyword.
> + { .compatible = "ti,pcm1792a", },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, pcm179x_of_match);
> -static int pcm179x_spi_probe(struct spi_device *spi)
> +int pcm179x_common_init(struct pcm179x_private *priv)
> {
> - struct pcm179x_private *pcm179x;
> - int ret;
> -
> - pcm179x = devm_kzalloc(&spi->dev, sizeof(struct pcm179x_private),
> - GFP_KERNEL);
> - if (!pcm179x)
> - return -ENOMEM;
> -
> - spi_set_drvdata(spi, pcm179x);
> -
> - pcm179x->regmap = devm_regmap_init_spi(spi, &pcm179x_regmap);
> - if (IS_ERR(pcm179x->regmap)) {
> - ret = PTR_ERR(pcm179x->regmap);
> - dev_err(&spi->dev, "Failed to register regmap: %d\n", ret);
> - return ret;
> - }
> -
> - return snd_soc_register_codec(&spi->dev,
> + return snd_soc_register_codec(priv->dev,
> &soc_codec_dev_pcm179x, &pcm179x_dai, 1);
> }
>
> -static int pcm179x_spi_remove(struct spi_device *spi)
> +int pcm179x_common_exit(struct pcm179x_private *priv)
> {
> - snd_soc_unregister_codec(&spi->dev);
> + snd_soc_unregister_codec(priv->dev);
> return 0;
> }
And missing EXPORT_SYMBOL_GPL for these two.
That should take care of the 0-day build-test errors.
Thanks,
Johan
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] ASoC: pcm179x: Add I2C support, declare support for continuous rates Jacob Siverskog <jacob@teenage.engineering> - 2016-01-18 17:00 +0100
[PATCH 3/3] ASoC: pcm179x: Support continuous rates Jacob Siverskog <jacob@teenage.engineering> - 2016-01-18 17:00 +0100
[PATCH 1/3] ASoC: pcm179x: Split into core and SPI parts Jacob Siverskog <jacob@teenage.engineering> - 2016-01-18 17:00 +0100
Re: [PATCH 1/3] ASoC: pcm179x: Split into core and SPI parts Johan Hovold <johan@kernel.org> - 2016-01-18 21:00 +0100
Re: [PATCH 0/3] ASoC: pcm179x: Add I2C support, declare support for continuous rates Michael Trimarchi <michael@amarulasolutions.com> - 2016-01-18 17:10 +0100
csiph-web