iio: adc: ad7923: register device with devm_iio_device_register
authorLucas Stankus <lucas.p.stankus@gmail.com>
Sun, 28 Mar 2021 21:46:46 +0000 (18:46 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Mar 2021 12:25:01 +0000 (13:25 +0100)
commit3e55bb6f2ac0bbd7ab8e5bde7b4f8b574afe2c52
tree7a3b7a6d7f557b42049664382dca727c668f70a9
parent075dff3367efff3c11467401d809e684dd63016e
iio: adc: ad7923: register device with devm_iio_device_register

Registers the device using the devm variant.
This is the final step of converting the ad7923 to only use devm routines,
meaning that the ad7923_remove() function is no longer needed to release
resources on device detach.

Signed-off-by: Lucas Stankus <lucas.p.stankus@gmail.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/b0146465d52f4e259f5f95c83c71e72f065093da.1616966903.git.lucas.p.stankus@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7923.c