* [PATCH 2/5] rtc: rtc-hym8563: Make of_device_id array const
2014-05-07 8:31 [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const Jingoo Han
@ 2014-05-07 8:34 ` Jingoo Han
2014-05-07 9:15 ` Heiko Stübner
2014-05-07 8:35 ` [PATCH 3/5] rtc: isl12057: " Jingoo Han
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Jingoo Han @ 2014-05-07 8:34 UTC (permalink / raw)
To: 'Andrew Morton'
Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
'Jingoo Han', 'Heiko Stübner'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-hym8563.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
index bd628a6..5620c24 100644
--- a/drivers/rtc/rtc-hym8563.c
+++ b/drivers/rtc/rtc-hym8563.c
@@ -582,7 +582,7 @@ static const struct i2c_device_id hym8563_id[] = {
};
MODULE_DEVICE_TABLE(i2c, hym8563_id);
-static struct of_device_id hym8563_dt_idtable[] = {
+static const struct of_device_id hym8563_dt_idtable[] = {
{ .compatible = "haoyu,hym8563" },
{},
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 2/5] rtc: rtc-hym8563: Make of_device_id array const
2014-05-07 8:34 ` [PATCH 2/5] rtc: rtc-hym8563: " Jingoo Han
@ 2014-05-07 9:15 ` Heiko Stübner
0 siblings, 0 replies; 6+ messages in thread
From: Heiko Stübner @ 2014-05-07 9:15 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Andrew Morton', linux-kernel, 'Alessandro Zummo',
rtc-linux
Am Mittwoch, 7. Mai 2014, 17:34:42 schrieb Jingoo Han:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/rtc/rtc-hym8563.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
> index bd628a6..5620c24 100644
> --- a/drivers/rtc/rtc-hym8563.c
> +++ b/drivers/rtc/rtc-hym8563.c
> @@ -582,7 +582,7 @@ static const struct i2c_device_id hym8563_id[] = {
> };
> MODULE_DEVICE_TABLE(i2c, hym8563_id);
>
> -static struct of_device_id hym8563_dt_idtable[] = {
> +static const struct of_device_id hym8563_dt_idtable[] = {
> { .compatible = "haoyu,hym8563" },
> {},
> };
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/5] rtc: isl12057: Make of_device_id array const
2014-05-07 8:31 [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const Jingoo Han
2014-05-07 8:34 ` [PATCH 2/5] rtc: rtc-hym8563: " Jingoo Han
@ 2014-05-07 8:35 ` Jingoo Han
2014-05-07 8:36 ` [PATCH 4/5] rtc: rtc-mv: " Jingoo Han
2014-05-07 8:37 ` [PATCH 5/5] rtc: rtc-palmas: " Jingoo Han
3 siblings, 0 replies; 6+ messages in thread
From: Jingoo Han @ 2014-05-07 8:35 UTC (permalink / raw)
To: 'Andrew Morton'
Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
'Jingoo Han', 'Arnaud Ebalard'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-isl12057.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c
index 41bd76a..455b601 100644
--- a/drivers/rtc/rtc-isl12057.c
+++ b/drivers/rtc/rtc-isl12057.c
@@ -278,7 +278,7 @@ static int isl12057_probe(struct i2c_client *client,
}
#ifdef CONFIG_OF
-static struct of_device_id isl12057_dt_match[] = {
+static const struct of_device_id isl12057_dt_match[] = {
{ .compatible = "isl,isl12057" },
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 4/5] rtc: rtc-mv: Make of_device_id array const
2014-05-07 8:31 [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const Jingoo Han
2014-05-07 8:34 ` [PATCH 2/5] rtc: rtc-hym8563: " Jingoo Han
2014-05-07 8:35 ` [PATCH 3/5] rtc: isl12057: " Jingoo Han
@ 2014-05-07 8:36 ` Jingoo Han
2014-05-07 8:37 ` [PATCH 5/5] rtc: rtc-palmas: " Jingoo Han
3 siblings, 0 replies; 6+ messages in thread
From: Jingoo Han @ 2014-05-07 8:36 UTC (permalink / raw)
To: 'Andrew Morton'
Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
'Jingoo Han', 'Simon Baatz'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-mv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c
index d15a999..6aaec2f 100644
--- a/drivers/rtc/rtc-mv.c
+++ b/drivers/rtc/rtc-mv.c
@@ -319,7 +319,7 @@ static int __exit mv_rtc_remove(struct platform_device *pdev)
}
#ifdef CONFIG_OF
-static struct of_device_id rtc_mv_of_match_table[] = {
+static const struct of_device_id rtc_mv_of_match_table[] = {
{ .compatible = "marvell,orion-rtc", },
{}
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 5/5] rtc: rtc-palmas: Make of_device_id array const
2014-05-07 8:31 [PATCH 1/5] rtc: rtc-ds1742: Make of_device_id array const Jingoo Han
` (2 preceding siblings ...)
2014-05-07 8:36 ` [PATCH 4/5] rtc: rtc-mv: " Jingoo Han
@ 2014-05-07 8:37 ` Jingoo Han
3 siblings, 0 replies; 6+ messages in thread
From: Jingoo Han @ 2014-05-07 8:37 UTC (permalink / raw)
To: 'Andrew Morton'
Cc: linux-kernel, 'Alessandro Zummo', rtc-linux,
'Jingoo Han', 'Laxman Dewangan'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/rtc/rtc-palmas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-palmas.c b/drivers/rtc/rtc-palmas.c
index c360d62..4dfe2d7 100644
--- a/drivers/rtc/rtc-palmas.c
+++ b/drivers/rtc/rtc-palmas.c
@@ -352,7 +352,7 @@ static SIMPLE_DEV_PM_OPS(palmas_rtc_pm_ops, palmas_rtc_suspend,
palmas_rtc_resume);
#ifdef CONFIG_OF
-static struct of_device_id of_palmas_rtc_match[] = {
+static const struct of_device_id of_palmas_rtc_match[] = {
{ .compatible = "ti,palmas-rtc"},
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread