* [PATCH 1/4] i2c: imx: Constify platform_device_id
@ 2015-05-01 15:54 Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 2/4] i2c: mxs: " Krzysztof Kozlowski
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:54 UTC (permalink / raw)
To: linux-arm-kernel
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
drivers/i2c/busses/i2c-imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index a53a7dd66945..785aa674a4da 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -241,7 +241,7 @@ static struct imx_i2c_hwdata vf610_i2c_hwdata = {
};
-static struct platform_device_id imx_i2c_devtype[] = {
+static const struct platform_device_id imx_i2c_devtype[] = {
{
.name = "imx1-i2c",
.driver_data = (kernel_ulong_t)&imx1_i2c_hwdata,
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/4] i2c: mxs: Constify platform_device_id
2015-05-01 15:54 [PATCH 1/4] i2c: imx: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-01 15:54 ` Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 3/4] i2c: rcar: " Krzysztof Kozlowski
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:54 UTC (permalink / raw)
To: linux-arm-kernel
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
drivers/i2c/busses/i2c-mxs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
index 3e84f6c090a5..033846cdf266 100644
--- a/drivers/i2c/busses/i2c-mxs.c
+++ b/drivers/i2c/busses/i2c-mxs.c
@@ -784,7 +784,7 @@ static int mxs_i2c_get_ofdata(struct mxs_i2c_dev *i2c)
return 0;
}
-static struct platform_device_id mxs_i2c_devtype[] = {
+static const struct platform_device_id mxs_i2c_devtype[] = {
{
.name = "imx23-i2c",
.driver_data = MXS_I2C_V1,
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 3/4] i2c: rcar: Constify platform_device_id
2015-05-01 15:54 [PATCH 1/4] i2c: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 2/4] i2c: mxs: " Krzysztof Kozlowski
@ 2015-05-01 15:54 ` Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 4/4] i2c: s4c2410: " Krzysztof Kozlowski
2015-05-12 16:29 ` [PATCH 1/4] i2c: imx: " Wolfram Sang
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:54 UTC (permalink / raw)
To: linux-arm-kernel
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
drivers/i2c/busses/i2c-rcar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c
index 5a84bea5b845..06f34d1c5121 100644
--- a/drivers/i2c/busses/i2c-rcar.c
+++ b/drivers/i2c/busses/i2c-rcar.c
@@ -713,7 +713,7 @@ static int rcar_i2c_remove(struct platform_device *pdev)
return 0;
}
-static struct platform_device_id rcar_i2c_id_table[] = {
+static const struct platform_device_id rcar_i2c_id_table[] = {
{ "i2c-rcar", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen1", I2C_RCAR_GEN1 },
{ "i2c-rcar_gen2", I2C_RCAR_GEN2 },
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 4/4] i2c: s4c2410: Constify platform_device_id
2015-05-01 15:54 [PATCH 1/4] i2c: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 2/4] i2c: mxs: " Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 3/4] i2c: rcar: " Krzysztof Kozlowski
@ 2015-05-01 15:54 ` Krzysztof Kozlowski
2015-05-12 16:29 ` [PATCH 1/4] i2c: imx: " Wolfram Sang
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:54 UTC (permalink / raw)
To: linux-arm-kernel
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
drivers/i2c/busses/i2c-s3c2410.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index 958c8db4ec30..c1f0e62d1bb1 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -132,7 +132,7 @@ struct s3c24xx_i2c {
unsigned int sys_i2c_cfg;
};
-static struct platform_device_id s3c24xx_driver_ids[] = {
+static const struct platform_device_id s3c24xx_driver_ids[] = {
{
.name = "s3c2410-i2c",
.driver_data = 0,
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 1/4] i2c: imx: Constify platform_device_id
2015-05-01 15:54 [PATCH 1/4] i2c: imx: Constify platform_device_id Krzysztof Kozlowski
` (2 preceding siblings ...)
2015-05-01 15:54 ` [PATCH 4/4] i2c: s4c2410: " Krzysztof Kozlowski
@ 2015-05-12 16:29 ` Wolfram Sang
3 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2015-05-12 16:29 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, May 02, 2015 at 12:54:25AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Squashed the 4 patches and applied to for-next, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150512/f2773fe7/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-12 16:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01 15:54 [PATCH 1/4] i2c: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 2/4] i2c: mxs: " Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 3/4] i2c: rcar: " Krzysztof Kozlowski
2015-05-01 15:54 ` [PATCH 4/4] i2c: s4c2410: " Krzysztof Kozlowski
2015-05-12 16:29 ` [PATCH 1/4] i2c: imx: " Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).