diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-10-26 13:53:52 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-12-03 04:42:23 +0300 |
commit | 3bce071a301f44ffd08bada9b2e8238b625f8f8c (patch) | |
tree | 4763c3f5d93b631254e712cfc2afba41c07c57bb /Documentation/hwmon/pmbus.rst | |
parent | ad00a02e34b481396938c5fa62ee642bff7fbb08 (diff) | |
download | linux-3bce071a301f44ffd08bada9b2e8238b625f8f8c.tar.xz |
hwmon: (pmbus) shrink code and remove pmbus_do_remove()
The only action currently performed in pmbus_do_remove() is removing the
debugfs hierarchy. We can schedule a devm action at probe time and remove
pmbus_do_remove() entirely from all pmbus drivers.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20201026105352.20359-1-brgl@bgdev.pl
[groeck: Removed references to pmbus_do_remove from documentation]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/pmbus.rst')
-rw-r--r-- | Documentation/hwmon/pmbus.rst | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Documentation/hwmon/pmbus.rst b/Documentation/hwmon/pmbus.rst index fb3ad67dedc1..c44f14115413 100644 --- a/Documentation/hwmon/pmbus.rst +++ b/Documentation/hwmon/pmbus.rst @@ -148,11 +148,6 @@ Emerson DS1200 power modules might look as follows:: return pmbus_do_probe(client, &ds1200_info); } - static int ds1200_remove(struct i2c_client *client) - { - return pmbus_do_remove(client); - } - static const struct i2c_device_id ds1200_id[] = { {"ds1200", 0}, {} @@ -166,7 +161,6 @@ Emerson DS1200 power modules might look as follows:: .name = "ds1200", }, .probe_new = ds1200_probe, - .remove = ds1200_remove, .id_table = ds1200_id, }; |