Skip to content

Commit d877a62

Browse files
Fabian FrederickEduardo Valentin
authored andcommitted
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 <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
1 parent 7e497a7 commit d877a62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/thermal/st/st_thermal_memmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const struct st_thermal_compat_data st_407_cdata = {
174174
.crit_temp = 120,
175175
};
176176

177-
static struct of_device_id st_mmap_thermal_of_match[] = {
177+
static const struct of_device_id st_mmap_thermal_of_match[] = {
178178
{ .compatible = "st,stih416-mpe-thermal", .data = &st_416mpe_cdata },
179179
{ .compatible = "st,stih407-thermal", .data = &st_407_cdata },
180180
{ /* sentinel */ }

drivers/thermal/st/st_thermal_syscfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const struct st_thermal_compat_data st_127_cdata = {
143143
.crit_temp = 120,
144144
};
145145

146-
static struct of_device_id st_syscfg_thermal_of_match[] = {
146+
static const struct of_device_id st_syscfg_thermal_of_match[] = {
147147
{ .compatible = "st,stih415-sas-thermal", .data = &st_415sas_cdata },
148148
{ .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata },
149149
{ .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata },

0 commit comments

Comments
 (0)