iio: adc: max1027: Use device-managed APIs
authorChuhong Yuan <hslester96@gmail.com>
Sun, 11 Aug 2019 12:51:46 +0000 (20:51 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Aug 2019 19:16:46 +0000 (20:16 +0100)
commit2715a28105c6b2cd75e2a594e45f8b57dde783f0
tree550b37d4f4e58113e9ca22886588d4a821e0c00c
parentb311da85f7944a98fdc45c2fc92d74234e22995c
iio: adc: max1027: Use device-managed APIs

Use device-managed APIs to simplify the code.

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