]> git.baikalelectronics.ru Git - kernel.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 16:11:29 +0000 (18:11 +0200)
commit783ca0cbf7cb647b2da6a379007b8f728a4f0604
treec33f9ce70e232d769dca455d82d0b319ff3b1021
parentffb6c19d5d38620e5ecbddfa7f936d5ef43c2c3b
hwmon: Make chip parameter for with_info API mandatory

[ Upstream commit 9747bbd954a00781b8c598de0e12dba6e94a8fbc ]

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.rst
drivers/hwmon/hwmon.c