mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
regulator: Drop unused assignment of platform_device_id driver data
Several drivers explicitly set the .driver_data member of struct platform_device_id to zero without relying on that value. Drop these unused assignments. While touching these arrays unify spacing, usage of commas and use named initializers for .name. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/613cd1bed263c2bf562ee714595f6d57f442804d.1779878004.git.u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e43ffb69e0
commit
4079e9d91b
|
|
@ -371,12 +371,10 @@ static int pm8607_regulator_probe(struct platform_device *pdev)
|
|||
static const struct platform_device_id pm8607_regulator_driver_ids[] = {
|
||||
{
|
||||
.name = "88pm860x-regulator",
|
||||
.driver_data = 0,
|
||||
}, {
|
||||
.name = "88pm860x-preg",
|
||||
.driver_data = 0,
|
||||
},
|
||||
{ },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, pm8607_regulator_driver_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -517,8 +517,8 @@ static int max77686_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id max77686_pmic_id[] = {
|
||||
{"max77686-pmic", 0},
|
||||
{ },
|
||||
{ .name = "max77686-pmic" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, max77686_pmic_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -546,8 +546,8 @@ static int max77802_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id max77802_pmic_id[] = {
|
||||
{"max77802-pmic", 0},
|
||||
{ },
|
||||
{ .name = "max77802-pmic" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, max77802_pmic_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -1152,8 +1152,8 @@ static int max8997_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id max8997_pmic_id[] = {
|
||||
{ "max8997-pmic", 0},
|
||||
{ },
|
||||
{ .name = "max8997-pmic" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, max8997_pmic_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -401,8 +401,8 @@ static int mt6323_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6323_platform_ids[] = {
|
||||
{"mt6323-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6323-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6323_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -487,8 +487,8 @@ static int mt6331_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6331_platform_ids[] = {
|
||||
{"mt6331-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6331-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6331_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -402,8 +402,8 @@ static int mt6332_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6332_platform_ids[] = {
|
||||
{"mt6332-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6332-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6332_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -724,8 +724,8 @@ static int mt6358_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6358_platform_ids[] = {
|
||||
{"mt6358-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6358-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6358_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -977,8 +977,8 @@ static int mt6359_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6359_platform_ids[] = {
|
||||
{"mt6359-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6359-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6359_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -446,8 +446,8 @@ static int mt6360_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6360_regulator_id_table[] = {
|
||||
{ "mt6360-regulator", 0 },
|
||||
{},
|
||||
{ .name = "mt6360-regulator" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table);
|
||||
|
||||
|
|
|
|||
|
|
@ -371,8 +371,8 @@ static int mt6370_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6370_devid_table[] = {
|
||||
{ "mt6370-regulator", 0},
|
||||
{}
|
||||
{ .name = "mt6370-regulator" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6370_devid_table);
|
||||
|
||||
|
|
|
|||
|
|
@ -314,8 +314,8 @@ static int mt6380_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6380_platform_ids[] = {
|
||||
{"mt6380-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6380-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6380_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -392,8 +392,8 @@ static int mt6397_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id mt6397_platform_ids[] = {
|
||||
{"mt6397-regulator", 0},
|
||||
{ /* sentinel */ },
|
||||
{ .name = "mt6397-regulator" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, mt6397_platform_ids);
|
||||
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ static int rt4831_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id rt4831_regulator_match[] = {
|
||||
{ "rt4831-regulator", 0 },
|
||||
{}
|
||||
{ .name = "rt4831-regulator" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, rt4831_regulator_match);
|
||||
|
||||
|
|
|
|||
|
|
@ -401,8 +401,8 @@ static int rt5120_regulator_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id rt5120_regulator_dev_table[] = {
|
||||
{ "rt5120-regulator", 0 },
|
||||
{}
|
||||
{ .name = "rt5120-regulator" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, rt5120_regulator_dev_table);
|
||||
|
||||
|
|
|
|||
|
|
@ -367,8 +367,8 @@ static int s2mpa01_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id s2mpa01_pmic_id[] = {
|
||||
{ "s2mpa01-pmic", 0},
|
||||
{ },
|
||||
{ .name = "s2mpa01-pmic" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, s2mpa01_pmic_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -916,8 +916,8 @@ static int s5m8767_pmic_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct platform_device_id s5m8767_pmic_id[] = {
|
||||
{ "s5m8767-pmic", 0},
|
||||
{ },
|
||||
{ .name = "s5m8767-pmic" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, s5m8767_pmic_id);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user