Re: [PATCH] hwmon: (pmbus) Add driver for STMicroelectronics PM6764TR Voltage Regulator

From
Andrew Lunn <andrew@lunn.ch>
Date
2020-10-22 13:04:28
Reply to
Charles Hsu, 2020-10-22
On Thu, Oct 22, 2020 at 07:51:51PM +0800, Charles Hsu wrote:
Add the pmbus driver for the STMicroelectronics pm6764tr voltage regulator.

Signed-off-by: Charles Hsu <hsu.yungteng@gmail.com>
Hi Charles

Seems a bit odd sending a HWMON driver to the netdev list!

quoted hunk ↗ jump to hunk
diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile
index 4c97ad0bd791..bb89fcf9544d 100644
--- a/drivers/hwmon/pmbus/Makefile
+++ b/drivers/hwmon/pmbus/Makefile
@@ -32,3 +32,4 @@ obj-$(CONFIG_SENSORS_UCD9000) += ucd9000.o
 obj-$(CONFIG_SENSORS_UCD9200) += ucd9200.o
 obj-$(CONFIG_SENSORS_XDPE122) += xdpe12284.o
 obj-$(CONFIG_SENSORS_ZL6100) += zl6100.o
+obj-$(CONFIG_SENSORS_PM6764TR) += pm6764tr.o
This file is sorted. Please don't insert at the end.
+#define PM6764TR_PMBUS_READ_VOUT 0xD4
+
+static int pm6764tr_read_word_data(struct i2c_client *client, int
page, int reg)
+{
+ int ret;
+
+ switch (reg) {
+ case PMBUS_VIRT_READ_VMON:
+ ret = pmbus_read_word_data(client, page,
+   PM6764TR_PMBUS_READ_VOUT);
+ break;
+ default:
+ ret = -ENODATA;
+ break;
+ }
+ return ret;
+}

It looks like your mailer has corrupted your patch.

   Andrew
Thread (2 messages) 2 messages, 2 authors, last reply 2020-10-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help