Skip to contentSkip to conversation

mfd: sprd: change the device_id data order

PATCH Applied Cixi Geng 2 participants 2 messages Apr 27, 2022

Subsystems (2)
lore
Share & tools
lore

Cixi Geng

author
#0 lore raw

PATCH 1/1 mfd: sprd: change the device_id data order

From: Cixi Geng <[email protected]>

Ordered with the smallest number at the top.

---
 drivers/mfd/sprd-sc27xx-spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/sprd-sc27xx-spi.c +2 -2
index cf4f89114ae4..d05a47c5187f 100644
@@ -240,15 +240,15 @@ static int sprd_pmic_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(sprd_pmic_pm_ops, sprd_pmic_suspend, sprd_pmic_resume);
 
 static const struct of_device_id sprd_pmic_match[] = {
-	{ .compatible = "sprd,sc2731", .data = &sc2731_data },
 	{ .compatible = "sprd,sc2730", .data = &sc2730_data },
+	{ .compatible = "sprd,sc2731", .data = &sc2731_data },
 	{},
 };
 MODULE_DEVICE_TABLE(of, sprd_pmic_match);
 
 static const struct spi_device_id sprd_pmic_spi_ids[] = {
-	{ .name = "sc2731", .driver_data = (unsigned long)&sc2731_data },
 	{ .name = "sc2730", .driver_data = (unsigned long)&sc2730_data },
+	{ .name = "sc2731", .driver_data = (unsigned long)&sc2731_data },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, sprd_pmic_spi_ids);
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 8 lines · Cixi Geng

From: Cixi Geng <[email protected]>

Ordered with the smallest number at the top.

---
 drivers/mfd/sprd-sc27xx-spi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog