2015-05-01 16:00:34

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 1/4] ASoC: au1x: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
sound/soc/au1x/db1200.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index c75995f2779c..58c3164802b8 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -21,7 +21,7 @@
#include "../codecs/wm8731.h"
#include "psc.h"

-static struct platform_device_id db1200_pids[] = {
+static const struct platform_device_id db1200_pids[] = {
{
.name = "db1200-ac97",
.driver_data = 0,
--
2.1.4


2015-05-01 16:01:52

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 2/4] ASoC: bt-sco: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
sound/soc/codecs/bt-sco.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index e7238b8904bc..9d0b794d3005 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -63,7 +63,7 @@ static int bt_sco_remove(struct platform_device *pdev)
return 0;
}

-static struct platform_device_id bt_sco_driver_ids[] = {
+static const struct platform_device_id bt_sco_driver_ids[] = {
{
.name = "dfbmcs320",
},
--
2.1.4

2015-05-01 16:00:41

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 3/4] ASoC: fsl: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
sound/soc/fsl/imx-audmux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
index d9050d946ae7..fc57da341d61 100644
--- a/sound/soc/fsl/imx-audmux.c
+++ b/sound/soc/fsl/imx-audmux.c
@@ -184,7 +184,7 @@ static enum imx_audmux_type {
IMX31_AUDMUX,
} audmux_type;

-static struct platform_device_id imx_audmux_ids[] = {
+static const struct platform_device_id imx_audmux_ids[] = {
{
.name = "imx21-audmux",
.driver_data = IMX21_AUDMUX,
--
2.1.4

2015-05-01 16:00:51

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 4/4] ASoC: samsung: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
sound/soc/samsung/i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index b92ab40d2be6..ea4ab374a223 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1493,7 +1493,7 @@ static const struct samsung_i2s_dai_data samsung_dai_type_sec = {
.dai_type = TYPE_SEC,
};

-static struct platform_device_id samsung_i2s_driver_ids[] = {
+static const struct platform_device_id samsung_i2s_driver_ids[] = {
{
.name = "samsung-i2s",
.driver_data = (kernel_ulong_t)&i2sv3_dai_type,
--
2.1.4

2015-05-01 16:46:46

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 1/4] ASoC: au1x: Constify platform_device_id

On Sat, May 02, 2015 at 01:00:11AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:51:46

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 2/4] ASoC: bt-sco: Constify platform_device_id

On Sat, May 02, 2015 at 01:00:12AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:52:06

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 3/4] ASoC: fsl: Constify platform_device_id

On Sat, May 02, 2015 at 01:00:13AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:54:19

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 4/4] ASoC: samsung: Constify platform_device_id

On Sat, May 02, 2015 at 01:00:14AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments