Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d877a62b authored by Fabian Frederick's avatar Fabian Frederick Committed by Eduardo Valentin
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 7e497a73
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -174,7 +174,7 @@ const struct st_thermal_compat_data st_407_cdata = {
	.crit_temp		= 120,
	.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,stih416-mpe-thermal", .data = &st_416mpe_cdata },
	{ .compatible = "st,stih407-thermal",     .data = &st_407_cdata },
	{ .compatible = "st,stih407-thermal",     .data = &st_407_cdata },
	{ /* sentinel */ }
	{ /* sentinel */ }
+1 −1
Original line number Original line Diff line number Diff line
@@ -143,7 +143,7 @@ const struct st_thermal_compat_data st_127_cdata = {
	.crit_temp		= 120,
	.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-sas-thermal", .data = &st_415sas_cdata },
	{ .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata },
	{ .compatible = "st,stih415-mpe-thermal", .data = &st_415mpe_cdata },
	{ .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata },
	{ .compatible = "st,stih416-sas-thermal", .data = &st_416sas_cdata },