[PATCH 2/5] drivers: regulator: tps6287x: Unify compatible

Neha Malcom Francis n-francis at ti.com
Tue May 7 05:21:55 PDT 2024


TPS62870/1/2/3 devices have different output currents (6A/9A/12A/15A) of
the TPS6287x family. The I2C addresses are the same between them. Since
the dt-binding now only recognizes ti,tps6287x for the same reason;
modify the driver compatible to reflect the same.

Signed-off-by: Neha Malcom Francis <n-francis at ti.com>
---
 drivers/regulator/tps6287x-regulator.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/regulator/tps6287x-regulator.c b/drivers/regulator/tps6287x-regulator.c
index 9b7c3d77789e..6dc8511bdd3e 100644
--- a/drivers/regulator/tps6287x-regulator.c
+++ b/drivers/regulator/tps6287x-regulator.c
@@ -154,20 +154,14 @@ static int tps6287x_i2c_probe(struct i2c_client *i2c)
 }
 
 static const struct of_device_id tps6287x_dt_ids[] = {
-	{ .compatible = "ti,tps62870", },
-	{ .compatible = "ti,tps62871", },
-	{ .compatible = "ti,tps62872", },
-	{ .compatible = "ti,tps62873", },
+	{ .compatible = "ti,tps6287x", },
 	{ }
 };
 
 MODULE_DEVICE_TABLE(of, tps6287x_dt_ids);
 
 static const struct i2c_device_id tps6287x_i2c_id[] = {
-	{ "tps62870", 0 },
-	{ "tps62871", 0 },
-	{ "tps62872", 0 },
-	{ "tps62873", 0 },
+	{ "tps6287x", 0 },
 	{},
 };
 
-- 
2.34.1




More information about the linux-arm-kernel mailing list