aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorBrian Masney <[email protected]>2018-03-03 20:49:33 -0500
committerJonathan Cameron <[email protected]>2018-03-10 14:29:39 +0000
commit107eb59bc15ccd999b8cd297172691673396ec8f (patch)
tree3dda0081034ac08dc325a814ff85da82671e18f4 /tools/perf/scripts/python/bin
parenteac15d8ded8f23a7cda681e2b2c7b86cf8535688 (diff)
staging: iio: tsl2x7x: add common function for reading chip status
There were three places where the same chunk of code was used to read the chip status. This patch creates a common function tsl2x7x_read_status() to reduce duplicate code. This patch also corrects tsl2x7x_event_handler() to properly check for an error after reading the chip status. Signed-off-by: Brian Masney <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions