]> Git Repo - linux.git/commit
thermal: thermal_hwmon: Convert to hwmon_device_register_with_info()
authorFabio Estevam <[email protected]>
Tue, 27 Dec 2016 17:31:49 +0000 (15:31 -0200)
committerZhang Rui <[email protected]>
Wed, 4 Jan 2017 03:15:23 +0000 (11:15 +0800)
commit7611fb68062f8d7f416f3272894d1edf7bbff29c
treebe689a1d5a48429126caf034fe3517025ae32252
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
thermal: thermal_hwmon: Convert to hwmon_device_register_with_info()

Booting Linux on a mx6q based board leads to the following warning:

(NULL device *): hwmon_device_register() is deprecated. Please convert the
driver to use hwmon_device_register_with_info().

,so do as suggested.

Also, this results in the core taking care of creating the 'name'
attribute, so drop the code doing that from the thermal driver.

Suggested-by: Guenter Roeck <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
drivers/thermal/thermal_hwmon.c
This page took 0.056191 seconds and 4 git commands to generate.