staging: iio: ad2s1210: Use device-managed API
authorChuhong Yuan <hslester96@gmail.com>
Fri, 26 Jul 2019 11:07:42 +0000 (19:07 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 21:52:06 +0000 (22:52 +0100)
commit857ba268f918dec28470c2074e7c69ccad52547e
treec1f10c296ca9a1e1d332d2315162f3bae5c2fedb
parent8ecc8b2b78e6af55aa366db4da79be1c772d5e55
staging: iio: ad2s1210: Use device-managed API

Use device-managed API to simplify the code.
The remove function is redundant now and can
be deleted.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c