aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Masney <[email protected]>2018-03-03 20:49:34 -0500
committerJonathan Cameron <[email protected]>2018-03-10 14:38:58 +0000
commitf5d9bca666078871f27eef6b18e507498840eb70 (patch)
tree89dc9a6e20b45bf565c620aa4da36892a5cb6a89 /tools/perf/scripts/python
parent107eb59bc15ccd999b8cd297172691673396ec8f (diff)
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions