]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: Make chip parameter for with_info API mandatory
authorGuenter Roeck <linux@roeck-us.net>
Wed, 11 May 2022 13:22:51 +0000 (06:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:17 +0000 (16:59 +0200)
commitf5af297158603dfef42b86d56b751a0799aadbc5
treedd12266edf65e9ffeafecafde494c6d1650a1fd5
parent381e50eedd3c11c0db1f60e7040daef22542714c
hwmon: Make chip parameter for with_info API mandatory

[ Upstream commit ddaefa209c4ac791c1262e97c9b2d0440c8ef1d5 ]

Various attempts were made recently to "convert" the old
hwmon_device_register() API to devm_hwmon_device_register_with_info()
by just changing the function name without actually converting the
driver. Prevent this from happening by making the 'chip' parameter of
devm_hwmon_device_register_with_info() mandatory.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/hwmon/hwmon-kernel-api.txt
drivers/hwmon/hwmon.c