iio: light: si1145: Use device-managed APIs
authorChuhong Yuan <hslester96@gmail.com>
Mon, 29 Jul 2019 01:43:01 +0000 (09:43 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Aug 2019 14:53:28 +0000 (15:53 +0100)
commitd3017f5fbb2dc597b8cc9b59144c63d9a1396392
tree03da748919dc84a707ec00dd1acf8191205dd87d
parenteb1d8ebf2d0a5648a4e13e44d2906f9bb4e28352
iio: light: si1145: 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/si1145.c