]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hwmon: (iio_hwmon) Use devm functions
authorMaxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Mon, 23 Jul 2018 03:33:29 +0000 (23:33 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 23 Jul 2018 18:38:33 +0000 (11:38 -0700)
commit12005ec33f3a7eac0d508dde52cc9eeea2595ee9
treec2bc350b9f98e482c54a12d6c28970cb64971a27
parentf1fd4a4db777030a2542701fb0d3a261d4472d6d
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: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
[groeck: Dropped now unnecessary platform_set_drvdata() and hwmon_dev]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/iio_hwmon.c