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:
Uwe Kleine-König (The Capable Hub) 2026-05-27 12:47:44 +02:00 committed by Mark Brown
parent e43ffb69e0
commit 4079e9d91b
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
17 changed files with 33 additions and 35 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);