]> git.ipfire.org Git - people/ms/linux.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)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 May 2022 18:32:31 +0000 (11:32 -0700)
commitddaefa209c4ac791c1262e97c9b2d0440c8ef1d5
tree31e1c149d69b9dc96c24e76a50da32b790028aab
parent87743bcf08072b3e1952a0bf5524b2833e667b4c
hwmon: Make chip parameter for with_info API mandatory

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