]> www.infradead.org Git - users/willy/xarray.git/commit
hwmon: Remove devm_hwmon_device_unregister() API function
authorGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2024 14:11:42 +0000 (07:11 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2024 14:27:36 +0000 (07:27 -0700)
commit2cb4acf2140be8a4f299c0b887cc314845ef6ec8
tree7db748ef5811cde9ab13276392499169b7f7098b
parent3017d28d6c0fe995703a1f34275e1cade424dc35
hwmon: Remove devm_hwmon_device_unregister() API function

devm_hwmon_device_unregister() has no in-tree user, and its implementation
is wrong since it does not pass the to-be-removed hardware monitoring
device as parameter. I do not envision a valid use for it; drivers needing
it should not have called devm_hwmon_device_register_with_info() in the
first place. Remove it.

Reported-by: Matthew Sanders <m@ttsande.rs>
Closes: https://lore.kernel.org/linux-hwmon/488b3bdf870ea76c4b943dbe5fd15ac8113019dc.camel@kernel.org/
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/hwmon-kernel-api.rst
drivers/hwmon/hwmon.c
include/linux/hwmon.h