Skip to contentSkip to conversation

mfd: tps65910: Make of_device_id array const

PATCH Applied Jingoo Han 2 participants 8 messages May 7, 2014

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/4 mfd: tps65910: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps65910.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65910.c +1 -1
index 460a014..f9e42ea 100644
@@ -379,7 +379,7 @@ err_sleep_init:
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id tps65910_of_match[] = {
+static const struct of_device_id tps65910_of_match[] = {
 	{ .compatible = "ti,tps65910", .data = (void *)TPS65910},
 	{ .compatible = "ti,tps65911", .data = (void *)TPS65911},
 	{ },
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH 2/4 mfd: tps6507x: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps6507x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps6507x.c +1 -1
index 3b27482..a2e1990 100644
@@ -119,7 +119,7 @@ static const struct i2c_device_id tps6507x_i2c_id[] = {
 MODULE_DEVICE_TABLE(i2c, tps6507x_i2c_id);
 
 #ifdef CONFIG_OF
-static struct of_device_id tps6507x_of_match[] = {
+static const struct of_device_id tps6507x_of_match[] = {
 	{.compatible = "ti,tps6507x", },
 	{},
 };
Signature · 1 line
1.7.10.4
Applied
#2 lore raw

Re: [PATCH 2/4] mfd: tps6507x: Make of_device_id array const

Quoted 7 lines · Jingoo Han

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps6507x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
author
#3 lore raw

PATCH 3/4 mfd: tps6586x: Make of_device_id array const

In reply to Jingoo Han

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps6586x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps6586x.c +1 -1
index bbd5441..ccd7082 100644
@@ -444,7 +444,7 @@ static struct tps6586x_platform_data *tps6586x_parse_dt(struct i2c_client *clien
 	return pdata;
 }
 
-static struct of_device_id tps6586x_of_match[] = {
+static const struct of_device_id tps6586x_of_match[] = {
 	{ .compatible = "ti,tps6586x", },
 	{ },
 };
Signature · 1 line
1.7.10.4
Applied
#4 lore raw

Re: [PATCH 3/4] mfd: tps6586x: Make of_device_id array const

Quoted 7 lines · Jingoo Han

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps6586x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
author
#5 lore raw

PATCH 4/4 mfd: sm501: Make of_device_id array const

In reply to Jingoo Han

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/sm501.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/sm501.c +1 -1
index e7dc441..81e6d09 100644
@@ -1726,7 +1726,7 @@ static struct pci_driver sm501_pci_driver = {
 
 MODULE_ALIAS("platform:sm501");
 
-static struct of_device_id of_sm501_match_tbl[] = {
+static const struct of_device_id of_sm501_match_tbl[] = {
 	{ .compatible = "smi,sm501", },
 	{ /* end */ }
 };
Signature · 1 line
1.7.10.4
Applied
#6 lore raw

Re: [PATCH 4/4] mfd: sm501: Make of_device_id array const

Quoted 7 lines · Jingoo Han

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/sm501.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Applied
#7 lore raw
In reply to Jingoo Han
Quoted 7 lines

Make of_device_id array const, because all OF functions handle it as const.

---
 drivers/mfd/tps65910.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog