summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2018-03-04 04:49:34 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-10 17:38:58 +0300
commitf5d9bca666078871f27eef6b18e507498840eb70 (patch)
tree89dc9a6e20b45bf565c620aa4da36892a5cb6a89 /tools/perf/scripts/python
parent107eb59bc15ccd999b8cd297172691673396ec8f (diff)
downloadlinux-f5d9bca666078871f27eef6b18e507498840eb70.tar.xz
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions