forked from luck/tmp_suning_uos_patched
hwmon: (pwm-fan, vexpress) 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 <fabf@skynet.be> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
25cdd99deb
commit
d720acace4
|
@ -322,7 +322,7 @@ static int pwm_fan_resume(struct device *dev)
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(pwm_fan_pm, pwm_fan_suspend, pwm_fan_resume);
|
static SIMPLE_DEV_PM_OPS(pwm_fan_pm, pwm_fan_suspend, pwm_fan_resume);
|
||||||
|
|
||||||
static struct of_device_id of_pwm_fan_match[] = {
|
static const struct of_device_id of_pwm_fan_match[] = {
|
||||||
{ .compatible = "pwm-fan", },
|
{ .compatible = "pwm-fan", },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
|
@ -193,7 +193,7 @@ static struct vexpress_hwmon_type vexpress_hwmon_energy = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct of_device_id vexpress_hwmon_of_match[] = {
|
static const struct of_device_id vexpress_hwmon_of_match[] = {
|
||||||
#if !defined(CONFIG_REGULATOR_VEXPRESS)
|
#if !defined(CONFIG_REGULATOR_VEXPRESS)
|
||||||
{
|
{
|
||||||
.compatible = "arm,vexpress-volt",
|
.compatible = "arm,vexpress-volt",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user