Skip to content

Commit 6f78e0a

Browse files
committed
Merge remote-tracking branches 'asoc/topic/twl6040', 'asoc/topic/txx9', 'asoc/topic/utils', 'asoc/topic/ux500' and 'asoc/topic/wm8523' into asoc-next
6 parents 644cbda + cfe267d + 5144468 + c9f3d34 + c996b52 + c0d088f commit 6f78e0a

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

sound/soc/codecs/twl6040.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,8 @@ static int twl6040_probe(struct snd_soc_codec *codec)
11231123

11241124
priv->plug_irq = platform_get_irq(pdev, 0);
11251125
if (priv->plug_irq < 0) {
1126-
dev_err(codec->dev, "invalid irq\n");
1127-
return -EINVAL;
1126+
dev_err(codec->dev, "invalid irq: %d\n", priv->plug_irq);
1127+
return priv->plug_irq;
11281128
}
11291129

11301130
INIT_DELAYED_WORK(&priv->hs_jack.work, twl6040_accessory_work);

sound/soc/codecs/wm8523.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route wm8523_dapm_routes[] = {
100100
{ "LINEVOUTR", NULL, "DAC" },
101101
};
102102

103-
static struct {
103+
static const struct {
104104
int value;
105105
int ratio;
106106
} lrclk_ratios[WM8523_NUM_RATES] = {
@@ -113,10 +113,10 @@ static struct {
113113
{ 7, 1152 },
114114
};
115115

116-
static struct {
116+
static const struct {
117117
int value;
118118
int ratio;
119-
} bclk_ratios[WM8523_NUM_RATES] = {
119+
} bclk_ratios[] = {
120120
{ 2, 32 },
121121
{ 3, 64 },
122122
{ 4, 128 },

sound/soc/soc-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static const struct snd_pcm_ops dummy_dma_ops = {
284284
.ioctl = snd_pcm_lib_ioctl,
285285
};
286286

287-
static struct snd_soc_platform_driver dummy_platform = {
287+
static const struct snd_soc_platform_driver dummy_platform = {
288288
.ops = &dummy_dma_ops,
289289
};
290290

sound/soc/txx9/txx9aclc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream)
271271
return 0;
272272
}
273273

274-
static struct snd_pcm_ops txx9aclc_pcm_ops = {
274+
static const struct snd_pcm_ops txx9aclc_pcm_ops = {
275275
.open = txx9aclc_pcm_open,
276276
.close = txx9aclc_pcm_close,
277277
.ioctl = snd_pcm_lib_ioctl,
@@ -403,7 +403,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform)
403403
return 0;
404404
}
405405

406-
static struct snd_soc_platform_driver txx9aclc_soc_platform = {
406+
static const struct snd_soc_platform_driver txx9aclc_soc_platform = {
407407
.probe = txx9aclc_pcm_probe,
408408
.remove = txx9aclc_pcm_remove,
409409
.ops = &txx9aclc_pcm_ops,

sound/soc/ux500/mop500.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ static int mop500_probe(struct platform_device *pdev)
115115

116116
dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n",
117117
__func__, mop500_card.name);
118-
platform_set_drvdata(pdev, &mop500_card);
119118

120119
snd_soc_card_set_drvdata(&mop500_card, NULL);
121120

sound/soc/ux500/ux500_msp_dai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static int ux500_msp_dai_probe(struct snd_soc_dai *dai)
707707
return 0;
708708
}
709709

710-
static struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
710+
static const struct snd_soc_dai_ops ux500_msp_dai_ops[] = {
711711
{
712712
.set_sysclk = ux500_msp_dai_set_dai_sysclk,
713713
.set_fmt = ux500_msp_dai_set_dai_fmt,

0 commit comments

Comments
 (0)