Skip to content

Commit

Permalink
thermal: constify of_device_id array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Eduardo Valentin committed Apr 7, 2015
1 parent 7e497a7 commit d877a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/thermal/st/st_thermal_memmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const struct st_thermal_compat_data st_407_cdata = {
.crit_temp = 120,
};

static struct of_device_id st_mmap_thermal_of_match[] = {
static const struct of_device_id st_mmap_thermal_of_match[] = {
{ .compatible = "st,stih416-mpe-thermal", .data = &st_416mpe_cdata },
{ .compatible = "st,stih407-thermal", .data = &st_407_cdata },
{ /* sentinel */ }
Expand Down
2 changes: 1 addition & 1 deletion drivers/thermal/st/st_thermal_syscfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const struct st_thermal_compat_data st_127_cdata = {
.crit_temp = 120,
};

static struct of_device_id st_syscfg_thermal_of_match[] = {
static const struct of_device_id st_syscfg_thermal_of_match[] = {
{ .compatible = "st,stih415-sas-thermal", .data = &st_415sas_cdata },
{ .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata },
{ .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata },
Expand Down

0 comments on commit d877a62

Please sign in to comment.