iio: vcnl4000: Factorize data reading and writing.
authorMathieu Othacehe <m.othacehe@gmail.com>
Sun, 3 May 2020 09:29:56 +0000 (11:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 May 2020 13:49:48 +0000 (14:49 +0100)
commit816956c32d76b7c4fb932f9a5ebaa38ccf4fa62e
treea5254b95a3ea75054c369fc6b1af132f6804bcde
parent18dfb5326370991c81a6d1ed6d1aeee055cb8c05
iio: vcnl4000: Factorize data reading and writing.

Factorize data reading in vcnl4000_measure into a vcnl4000_read_data
function. Also add a vcnl4000_write_data function.

Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c