linux/drivers/staging/iio
Brian Masney f5d9bca666 staging: iio: tsl2x7x: add common function for writing to the control register
There were four places where the same chunk of code was used to write
to the control register. This patch creates a common function
tsl2x7x_write_control_reg() to reduce duplicate code.

The function tsl2x7x_chip_off() did not correctly return an error
code so this patch also corrects that issue.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-03-10 14:38:58 +00:00
..
accel Staging: iio: adis16209: Use sign_extend32 function 2018-03-07 21:08:03 +00:00
adc staging: iio: Remove unnecessary cast on void pointer 2018-03-07 19:52:58 +00:00
addac staging:iio:adc: drop assign iio_info.driver_module 2017-08-22 22:14:53 +01:00
cdc Staging: iio: cdc: ad7152: Prefer using BIT macro 2018-01-08 16:03:43 +01:00
Documentation staging:iio:docs: drop setting of THIS_MODULE from staging docs. 2017-09-03 18:10:28 +01:00
frequency staging:iio:frequency: drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
gyro staging:iio:gyro:adis16060 drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
impedance-analyzer staging:iio:ad5933: drop assign iio_info.driver_module 2017-08-22 22:14:56 +01:00
light staging: iio: tsl2x7x: add common function for writing to the control register 2018-03-10 14:38:58 +00:00
meter staging:iio:meter: Aligns open parenthesis 2018-03-07 20:10:07 +00:00
resolver iio:resolver: drop assignment of iio_info.driver_module 2017-08-22 22:14:57 +01:00
trigger staging: iio: trigger: blackfin timer: replace device_attr with device_attr_rw 2018-01-08 16:03:43 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00