* [PATCH 2/5] regulator: max8952: Make of_device_id array const
2014-05-07 7:55 [PATCH 1/5] regulator: anatop: Make of_device_id array const Jingoo Han
@ 2014-05-07 8:06 ` Jingoo Han
2014-05-07 8:42 ` Krzysztof Kozlowski
2014-05-07 8:07 ` [PATCH 3/5] regulator: palmas: " Jingoo Han
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Jingoo Han @ 2014-05-07 8:06 UTC (permalink / raw)
To: 'Mark Brown'
Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han',
'Krzysztof Kozlowski'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/regulator/max8952.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index d920f5a..c2792f0 100644
--- a/drivers/regulator/max8952.c
+++ b/drivers/regulator/max8952.c
@@ -129,7 +129,7 @@ static const struct regulator_desc regulator = {
};
#ifdef CONFIG_OF
-static struct of_device_id max8952_dt_match[] = {
+static const struct of_device_id max8952_dt_match[] = {
{ .compatible = "maxim,max8952" },
{},
};
--
1.7.10.4
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 2/5] regulator: max8952: Make of_device_id array const
2014-05-07 8:06 ` [PATCH 2/5] regulator: max8952: " Jingoo Han
@ 2014-05-07 8:42 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2014-05-07 8:42 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'Mark Brown', 'Liam Girdwood', linux-kernel
On śro, 2014-05-07 at 17:06 +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/regulator/max8952.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Best regards,
Krzysztof
>
> diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
> index d920f5a..c2792f0 100644
> --- a/drivers/regulator/max8952.c
> +++ b/drivers/regulator/max8952.c
> @@ -129,7 +129,7 @@ static const struct regulator_desc regulator = {
> };
>
> #ifdef CONFIG_OF
> -static struct of_device_id max8952_dt_match[] = {
> +static const struct of_device_id max8952_dt_match[] = {
> { .compatible = "maxim,max8952" },
> {},
> };
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/5] regulator: palmas: Make of_device_id array const
2014-05-07 7:55 [PATCH 1/5] regulator: anatop: Make of_device_id array const Jingoo Han
2014-05-07 8:06 ` [PATCH 2/5] regulator: max8952: " Jingoo Han
@ 2014-05-07 8:07 ` Jingoo Han
2014-05-07 8:08 ` [PATCH 4/5] regulator: st-pwm: " Jingoo Han
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Jingoo Han @ 2014-05-07 8:07 UTC (permalink / raw)
To: 'Mark Brown'
Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han',
'Stephen Warren', '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/regulator/palmas-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index 9c62b1d..671cb9f 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -1199,7 +1199,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
return 0;
}
-static struct of_device_id of_palmas_match_tbl[] = {
+static const struct of_device_id of_palmas_match_tbl[] = {
{ .compatible = "ti,palmas-pmic", },
{ .compatible = "ti,twl6035-pmic", },
{ .compatible = "ti,twl6036-pmic", },
--
1.7.10.4
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 4/5] regulator: st-pwm: Make of_device_id array const
2014-05-07 7:55 [PATCH 1/5] regulator: anatop: Make of_device_id array const Jingoo Han
2014-05-07 8:06 ` [PATCH 2/5] regulator: max8952: " Jingoo Han
2014-05-07 8:07 ` [PATCH 3/5] regulator: palmas: " Jingoo Han
@ 2014-05-07 8:08 ` Jingoo Han
2014-05-07 8:09 ` [PATCH 5/5] regulator: vexpress: " Jingoo Han
2014-05-07 19:55 ` [PATCH 1/5] regulator: anatop: " Mark Brown
4 siblings, 0 replies; 8+ messages in thread
From: Jingoo Han @ 2014-05-07 8:08 UTC (permalink / raw)
To: 'Mark Brown'
Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han',
'Lee Jones'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/regulator/st-pwm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/st-pwm.c b/drivers/regulator/st-pwm.c
index e367af1..5ea78df 100644
--- a/drivers/regulator/st-pwm.c
+++ b/drivers/regulator/st-pwm.c
@@ -118,7 +118,7 @@ static const struct st_pwm_regulator_pdata b2105_info = {
.duty_cycle_table = b2105_duty_cycle_table,
};
-static struct of_device_id st_pwm_of_match[] = {
+static const struct of_device_id st_pwm_of_match[] = {
{ .compatible = "st,b2105-pwm-regulator", .data = &b2105_info, },
{ },
};
--
1.7.10.4
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 5/5] regulator: vexpress: Make of_device_id array const
2014-05-07 7:55 [PATCH 1/5] regulator: anatop: Make of_device_id array const Jingoo Han
` (2 preceding siblings ...)
2014-05-07 8:08 ` [PATCH 4/5] regulator: st-pwm: " Jingoo Han
@ 2014-05-07 8:09 ` Jingoo Han
2014-05-07 8:12 ` Pawel Moll
2014-05-07 19:55 ` [PATCH 1/5] regulator: anatop: " Mark Brown
4 siblings, 1 reply; 8+ messages in thread
From: Jingoo Han @ 2014-05-07 8:09 UTC (permalink / raw)
To: 'Mark Brown'
Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han',
'Pawel Moll'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/regulator/vexpress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/vexpress.c b/drivers/regulator/vexpress.c
index f3ae28a..147ecc7 100644
--- a/drivers/regulator/vexpress.c
+++ b/drivers/regulator/vexpress.c
@@ -123,7 +123,7 @@ static int vexpress_regulator_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id vexpress_regulator_of_match[] = {
+static const struct of_device_id vexpress_regulator_of_match[] = {
{ .compatible = "arm,vexpress-volt", },
{ }
};
--
1.7.10.4
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 5/5] regulator: vexpress: Make of_device_id array const
2014-05-07 8:09 ` [PATCH 5/5] regulator: vexpress: " Jingoo Han
@ 2014-05-07 8:12 ` Pawel Moll
0 siblings, 0 replies; 8+ messages in thread
From: Pawel Moll @ 2014-05-07 8:12 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'Mark Brown', 'Liam Girdwood', linux-kernel
On Wed, 2014-05-07 at 09:09 +0100, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/regulator/vexpress.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/regulator/vexpress.c b/drivers/regulator/vexpress.c
> index f3ae28a..147ecc7 100644
> --- a/drivers/regulator/vexpress.c
> +++ b/drivers/regulator/vexpress.c
> @@ -123,7 +123,7 @@ static int vexpress_regulator_remove(struct platform_device *pdev)
> return 0;
> }
>
> -static struct of_device_id vexpress_regulator_of_match[] = {
> +static const struct of_device_id vexpress_regulator_of_match[] = {
> { .compatible = "arm,vexpress-volt", },
> { }
> };
Acked-by: Pawel Moll <pawel.moll@arm.com>
Thanks!
Pawel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/5] regulator: anatop: Make of_device_id array const
2014-05-07 7:55 [PATCH 1/5] regulator: anatop: Make of_device_id array const Jingoo Han
` (3 preceding siblings ...)
2014-05-07 8:09 ` [PATCH 5/5] regulator: vexpress: " Jingoo Han
@ 2014-05-07 19:55 ` Mark Brown
4 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2014-05-07 19:55 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Liam Girdwood', linux-kernel, 'Philipp Zabel',
'Shawn Guo'
[-- Attachment #1: Type: text/plain, Size: 162 bytes --]
On Wed, May 07, 2014 at 04:55:10PM +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
Applied all, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread