diff mbox series

[3/3] hwmon: (pmbus) add support for Infineon IRPS5401

Message ID 1559751434-19879-4-git-send-email-hancock@sedsystems.ca (mailing list archive)
State Superseded
Headers show
Series Add pmbus support for Infineon IRPS5401 | expand

Commit Message

Robert Hancock June 5, 2019, 4:17 p.m. UTC
Add detection support for the Infineon IRPS5401 PMIC. This chip has 5
pages corresponding to 4 switching outputs and one linear (LDO) output.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
---
 drivers/hwmon/pmbus/pmbus.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
index 970322f..158d61e 100644
--- a/drivers/hwmon/pmbus/pmbus.c
+++ b/drivers/hwmon/pmbus/pmbus.c
@@ -191,6 +191,10 @@  static int pmbus_probe(struct i2c_client *client,
 	return pmbus_do_probe(client, id, info);
 }
 
+static const struct pmbus_device_info pmbus_info_five = {
+	.pages = 5,
+	.flags = 0
+};
 static const struct pmbus_device_info pmbus_info_one = {
 	.pages = 1,
 	.flags = 0
@@ -214,6 +218,7 @@  static int pmbus_probe(struct i2c_client *client,
 	{"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
 	{"dps650ab", (kernel_ulong_t)&pmbus_info_one_skip},
 	{"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
+	{"irps5401", (kernel_ulong_t)&pmbus_info_five},
 	{"mdt040", (kernel_ulong_t)&pmbus_info_one},
 	{"ncp4200", (kernel_ulong_t)&pmbus_info_one},
 	{"ncp4208", (kernel_ulong_t)&pmbus_info_one},