Skip to content
Commit 12005ec3 authored by Maxime Roussin-Bélanger's avatar Maxime Roussin-Bélanger Committed by Guenter Roeck
Browse files

hwmon: (iio_hwmon) Use devm functions



Use devm_iio_channel_get_all() to automatically release
channels.

Use devm_hwmon_device_register_with_groups() to
automatically unregister the device.

Signed-off-by: default avatarMaxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
[groeck: Dropped now unnecessary platform_set_drvdata() and hwmon_dev]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f1fd4a4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment