]> 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)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 May 2022 18:32:31 +0000 (11:32 -0700)
commit9747bbd954a00781b8c598de0e12dba6e94a8fbc
tree31e1c149d69b9dc96c24e76a50da32b790028aab
parent23f960d90324d8acfe762b0cbdbe0f97faf5ee78
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