[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220519234346.440398-3-dev_public@wujek.eu>
Date: Thu, 19 May 2022 23:44:07 +0000
From: Adam Wujek <dev_public@...ek.eu>
To: unlisted-recipients:; (no To-header on input)
Cc: Adam Wujek <dev_public@...ek.eu>,
Guenter Roeck <linux@...ck-us.net>,
Jean Delvare <jdelvare@...e.com>, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] hwmon: (pmbus) support mfr registers specific for page in debugfs
Before, it was assumed that all debugfs mfr entries are the same for all
pages. Now mfr registers can be present only on some pages or contain
different values in different pages.
Signed-off-by: Adam Wujek <dev_public@...ek.eu>
---
drivers/hwmon/pmbus/pmbus_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
index 597cbe85df07..26fa927dac26 100644
--- a/drivers/hwmon/pmbus/pmbus_core.c
+++ b/drivers/hwmon/pmbus/pmbus_core.c
@@ -2664,7 +2664,8 @@ static ssize_t pmbus_debugfs_mfr_read(struct file *file, char __user *buf,
struct pmbus_debugfs_entry *entry = file->private_data;
char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 };
- rc = i2c_smbus_read_block_data(entry->client, entry->reg, data);
+ rc = pmbus_read_block_data(entry->client, entry->page, entry->reg,
+ data);
if (rc < 0)
return rc;
--
2.17.1
Powered by blists - more mailing lists