diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-16 15:17:09 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-04-07 16:29:35 -0400 |
commit | d877a62b20f0592971a3c434486b58c425492732 (patch) | |
tree | 87c88a8abb740dc1fa0a53bb1c526a282a86d6d8 | |
parent | 7e497a7375fe5d5c5d751a71d006f4fd515bbcd8 (diff) |
thermal: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/st/st_thermal_memmap.c | 2 | ||||
-rw-r--r-- | drivers/thermal/st/st_thermal_syscfg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/st/st_thermal_memmap.c b/drivers/thermal/st/st_thermal_memmap.c index 067bfcdb91d6..bd223398daf1 100644 --- a/drivers/thermal/st/st_thermal_memmap.c +++ b/drivers/thermal/st/st_thermal_memmap.c | |||
@@ -174,7 +174,7 @@ const struct st_thermal_compat_data st_407_cdata = { | |||
174 | .crit_temp = 120, | 174 | .crit_temp = 120, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static struct of_device_id st_mmap_thermal_of_match[] = { | 177 | static const struct of_device_id st_mmap_thermal_of_match[] = { |
178 | { .compatible = "st,stih416-mpe-thermal", .data = &st_416mpe_cdata }, | 178 | { .compatible = "st,stih416-mpe-thermal", .data = &st_416mpe_cdata }, |
179 | { .compatible = "st,stih407-thermal", .data = &st_407_cdata }, | 179 | { .compatible = "st,stih407-thermal", .data = &st_407_cdata }, |
180 | { /* sentinel */ } | 180 | { /* sentinel */ } |
diff --git a/drivers/thermal/st/st_thermal_syscfg.c b/drivers/thermal/st/st_thermal_syscfg.c index 26d36a242bb8..65eab7212d57 100644 --- a/drivers/thermal/st/st_thermal_syscfg.c +++ b/drivers/thermal/st/st_thermal_syscfg.c | |||
@@ -143,7 +143,7 @@ const struct st_thermal_compat_data st_127_cdata = { | |||
143 | .crit_temp = 120, | 143 | .crit_temp = 120, |
144 | }; | 144 | }; |
145 | 145 | ||
146 | static struct of_device_id st_syscfg_thermal_of_match[] = { | 146 | static const struct of_device_id st_syscfg_thermal_of_match[] = { |
147 | { .compatible = "st,stih415-sas-thermal", .data = &st_415sas_cdata }, | 147 | { .compatible = "st,stih415-sas-thermal", .data = &st_415sas_cdata }, |
148 | { .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata }, | 148 | { .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata }, |
149 | { .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata }, | 149 | { .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata }, |