iio: mxc4005: Use device-managed APIs
authorChuhong Yuan <hslester96@gmail.com>
Fri, 26 Jul 2019 06:36:16 +0000 (14:36 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 21:52:06 +0000 (22:52 +0100)
commit6e4707ed3411d0cb3c1d9a0a093f77fbdf768fa5
tree78dfcc795c11d66625b4ea4116abe3bd544f6174
parent23f1ce3c08aad743cd828ca5a36946f043ecf0f1
iio: mxc4005: Use device-managed APIs

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

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mxc4005.c