]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1165e6ede56159a1e2038fb5d3ffdf7e71580949
treea5254b95a3ea75054c369fc6b1af132f6804bcde
parent67e0da66d7053ca8ae1af2f64be98b03c88079a7
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