aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Masney <[email protected]>2017-07-06 18:56:22 -0400
committerJonathan Cameron <[email protected]>2017-07-09 18:28:47 +0100
commit1b4cbe2ef00e5d055bb310030ed3eac9bc1d3e3d (patch)
tree47fcb4e070a93c0df93cef0bff9fb2eaffec1cdd /tools/perf/scripts/python
parentd2f46f56b8ecd32ab0734b4a6d8a14de88d9894f (diff)
staging: iio: tsl2x7x: cleaned up i2c calls in tsl2x7x_als_calibrate()
The calibration function calls i2c_smbus_write_byte() and i2c_smbus_read_byte(). These two function calls are replaced with a single call to i2c_smbus_read_byte_data() by this patch. This patch also removes an unnecessary call that reads the CNTRL register a second time. One of the error paths returned -1 if the ADC was not enabled and this patch changes that return value to -EINVAL. 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