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

Commit 245165de authored by Fabian Frederick's avatar Fabian Frederick Committed by Dmitry Torokhov
Browse files

Input: constify of_device_id arrays



of_device_id is always used as const argument (See driver.of_match_table
and open firmware functions).

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d1b12075
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ static SIMPLE_DEV_PM_OPS(palmas_pwron_pm,
			 palmas_pwron_suspend, palmas_pwron_resume);

#ifdef CONFIG_OF
static struct of_device_id of_palmas_pwr_match[] = {
static const struct of_device_id of_palmas_pwr_match[] = {
	{ .compatible = "ti,palmas-pwrbutton" },
	{ },
};
+1 −1
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ static int __maybe_unused regulator_haptic_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(regulator_haptic_pm_ops,
		regulator_haptic_suspend, regulator_haptic_resume);

static struct of_device_id regulator_haptic_dt_match[] = {
static const struct of_device_id regulator_haptic_dt_match[] = {
	{ .compatible = "regulator-haptic" },
	{ /* sentinel */ },
};
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ static int tps65218_pwron_probe(struct platform_device *pdev)
	return 0;
}

static struct of_device_id of_tps65218_pwr_match[] = {
static const struct of_device_id of_tps65218_pwr_match[] = {
	{ .compatible = "ti,tps65218-pwrbutton" },
	{ },
};
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ static const struct i2c_device_id ar1021_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ar1021_i2c_id);

static struct of_device_id ar1021_i2c_of_match[] = {
static const struct of_device_id ar1021_i2c_of_match[] = {
	{ .compatible = "microchip,ar1021-i2c", },
	{ }
};