Commit 6f78e0a1 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branches 'asoc/topic/twl6040', 'asoc/topic/txx9',...

Merge remote-tracking branches 'asoc/topic/twl6040', 'asoc/topic/txx9', 'asoc/topic/utils', 'asoc/topic/ux500' and 'asoc/topic/wm8523' into asoc-next
...@@ -1123,8 +1123,8 @@ static int twl6040_probe(struct snd_soc_codec *codec) ...@@ -1123,8 +1123,8 @@ static int twl6040_probe(struct snd_soc_codec *codec)
priv->plug_irq = platform_get_irq(pdev, 0); priv->plug_irq = platform_get_irq(pdev, 0);
if (priv->plug_irq < 0) { if (priv->plug_irq < 0) {
dev_err(codec->dev, "invalid irq\n"); dev_err(codec->dev, "invalid irq: %d\n", priv->plug_irq);
return -EINVAL; return priv->plug_irq;
} }
INIT_DELAYED_WORK(&priv->hs_jack.work, twl6040_accessory_work); INIT_DELAYED_WORK(&priv->hs_jack.work, twl6040_accessory_work);
......
...@@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route wm8523_dapm_routes[] = { ...@@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route wm8523_dapm_routes[] = {
{ "LINEVOUTR", NULL, "DAC" }, { "LINEVOUTR", NULL, "DAC" },
}; };
static struct { static const struct {
int value; int value;
int ratio; int ratio;
} lrclk_ratios[WM8523_NUM_RATES] = { } lrclk_ratios[WM8523_NUM_RATES] = {
...@@ -113,10 +113,10 @@ static struct { ...@@ -113,10 +113,10 @@ static struct {
{ 7, 1152 }, { 7, 1152 },
}; };
static struct { static const struct {
int value; int value;
int ratio; int ratio;
} bclk_ratios[WM8523_NUM_RATES] = { } bclk_ratios[] = {
{ 2, 32 }, { 2, 32 },
{ 3, 64 }, { 3, 64 },
{ 4, 128 }, { 4, 128 },
......
...@@ -284,7 +284,7 @@ static const struct snd_pcm_ops dummy_dma_ops = { ...@@ -284,7 +284,7 @@ static const struct snd_pcm_ops dummy_dma_ops = {
.ioctl = snd_pcm_lib_ioctl, .ioctl = snd_pcm_lib_ioctl,
}; };
static struct snd_soc_platform_driver dummy_platform = { static const struct snd_soc_platform_driver dummy_platform = {
.ops = &dummy_dma_ops, .ops = &dummy_dma_ops,
}; };
......
...@@ -271,7 +271,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream) ...@@ -271,7 +271,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream)
return 0; return 0;
} }
static struct snd_pcm_ops txx9aclc_pcm_ops = { static const struct snd_pcm_ops txx9aclc_pcm_ops = {
.open = txx9aclc_pcm_open, .open = txx9aclc_pcm_open,
.close = txx9aclc_pcm_close, .close = txx9aclc_pcm_close,
.ioctl = snd_pcm_lib_ioctl, .ioctl = snd_pcm_lib_ioctl,
...@@ -403,7 +403,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform) ...@@ -403,7 +403,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform)
return 0; return 0;
} }
static struct snd_soc_platform_driver txx9aclc_soc_platform = { static const struct snd_soc_platform_driver txx9aclc_soc_platform = {
.probe = txx9aclc_pcm_probe, .probe = txx9aclc_pcm_probe,
.remove = txx9aclc_pcm_remove, .remove = txx9aclc_pcm_remove,
.ops = &txx9aclc_pcm_ops, .ops = &txx9aclc_pcm_ops,
......
...@@ -115,7 +115,6 @@ static int mop500_probe(struct platform_device *pdev) ...@@ -115,7 +115,6 @@ static int mop500_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n", dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n",
__func__, mop500_card.name); __func__, mop500_card.name);
platform_set_drvdata(pdev, &mop500_card);
snd_soc_card_set_drvdata(&mop500_card, NULL); snd_soc_card_set_drvdata(&mop500_card, NULL);
......
...@@ -707,7 +707,7 @@ static int ux500_msp_dai_probe(struct snd_soc_dai *dai) ...@@ -707,7 +707,7 @@ static int ux500_msp_dai_probe(struct snd_soc_dai *dai)
return 0; return 0;
} }
static struct snd_soc_dai_ops ux500_msp_dai_ops[] = { static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
{ {
.set_sysclk = ux500_msp_dai_set_dai_sysclk, .set_sysclk = ux500_msp_dai_set_dai_sysclk,
.set_fmt = ux500_msp_dai_set_dai_fmt, .set_fmt = ux500_msp_dai_set_dai_fmt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment