iio: light: cm3323: Use device-managed APIs
authorChuhong Yuan <hslester96@gmail.com>
Sun, 28 Jul 2019 14:36:30 +0000 (22:36 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Aug 2019 13:54:15 +0000 (14:54 +0100)
commitdff38165a5a873741c67e728f80d5e923852cc67
tree4ca57cec540f356c60057d173b19877382a395d9
parent5e8447d1b0a79c318a8a71cf5e6533a5a5e1b02c
iio: light: cm3323: Use device-managed APIs

Use device-managed APIs to simplify the code.
The remove functions are 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/light/cm3323.c