summaryrefslogtreecommitdiff
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-06-27 09:49:48 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-08-21 16:04:29 +0300
commit4a754aba0bd1ecc0529c7e0282a3947cff68cc5f (patch)
treeaf106b049a7a3b2c9ed08ea1150c0b7ed0cf73d5 /Documentation/hwmon
parent9c53fb0ad1acaf227718ccae16e8fb8e01c05918 (diff)
downloadlinux-4a754aba0bd1ecc0529c7e0282a3947cff68cc5f.tar.xz
hwmon: (pmbus) Update documentation to not use .probe_new() any more
Since commit 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") .probe() is the recommended callback to implement an i2c driver (again). Reflect this in the documentation and don't mention .probe_new() which will be dropped soon. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230627064948.593804-1-u.kleine-koenig@pengutronix.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/pmbus.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/hwmon/pmbus.rst b/Documentation/hwmon/pmbus.rst
index 7ecfec6ca2db..eb1569bfa676 100644
--- a/Documentation/hwmon/pmbus.rst
+++ b/Documentation/hwmon/pmbus.rst
@@ -163,7 +163,7 @@ Emerson DS1200 power modules might look as follows::
.driver = {
.name = "ds1200",
},
- .probe_new = ds1200_probe,
+ .probe = ds1200_probe,
.id_table = ds1200_id,
};