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

Commit 8fb08855 authored by Fabian Frederick's avatar Fabian Frederick Committed by Sebastian Reichel
Browse files

power: 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>

[for vexpress]
Acked-by: default avatarSudeep Holla <sudeep.holla@arm.com>

Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 039ab50b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1484,7 +1484,7 @@ static int cm_init_thermal_data(struct charger_manager *cm,
	return ret;
}

static struct of_device_id charger_manager_match[] = {
static const struct of_device_id charger_manager_match[] = {
	{
		.compatible = "charger-manager",
	},
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ static int at91_poweroff_probe(struct platform_device *pdev)
	return 0;
}

static struct of_device_id at91_poweroff_of_match[] = {
static const struct of_device_id at91_poweroff_of_match[] = {
	{ .compatible = "atmel,at91sam9260-shdwc", },
	{ .compatible = "atmel,at91sam9rl-shdwc", },
	{ .compatible = "atmel,at91sam9x5-shdwc", },
+2 −2
Original line number Diff line number Diff line
@@ -152,14 +152,14 @@ static void __init at91_reset_status(struct platform_device *pdev)
	pr_info("AT91: Starting after %s\n", reason);
}

static struct of_device_id at91_ramc_of_match[] = {
static const struct of_device_id at91_ramc_of_match[] = {
	{ .compatible = "atmel,at91sam9260-sdramc", },
	{ .compatible = "atmel,at91sam9g45-ddramc", },
	{ .compatible = "atmel,sama5d3-ddramc", },
	{ /* sentinel */ }
};

static struct of_device_id at91_reset_of_match[] = {
static const struct of_device_id at91_reset_of_match[] = {
	{ .compatible = "atmel,at91sam9260-rstc", .data = at91sam9260_restart },
	{ .compatible = "atmel,at91sam9g45-rstc", .data = at91sam9g45_restart },
	{ /* sentinel */ }
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ static int hisi_reboot_probe(struct platform_device *pdev)
	return err;
}

static struct of_device_id hisi_reboot_of_match[] = {
static const struct of_device_id hisi_reboot_of_match[] = {
	{ .compatible = "hisilicon,sysctrl" },
	{}
};
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ static struct notifier_block rsctrl_restart_nb = {
	.priority = 128,
};

static struct of_device_id rsctrl_of_match[] = {
static const struct of_device_id rsctrl_of_match[] = {
	{.compatible = "ti,keystone-reset", },
	{},
};
Loading