summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Masney <masneyb@onstation.org>2016-11-03 15:56:17 +0300
committerJonathan Cameron <jic23@kernel.org>2016-11-06 14:54:32 +0300
commitc2b0d2cfb0317275cf04257fc3f5dfbdd9ffa274 (patch)
treec18aaf2286d725d2f66c2cc1fe877a05269eff89 /include
parent0561155f6fc5d4e3702b3805fea0ec1f55e5f08e (diff)
downloadlinux-c2b0d2cfb0317275cf04257fc3f5dfbdd9ffa274.tar.xz
staging: iio: tsl2583: remove redudant i2c call in taos_als_calibrate()
taos_als_calibrate() queries the control register to determine if the unit is powered on and has the ADC enabled. It then queries the same register a second time to determine if the ADC reading is valid. This patch removes the redundant i2c_smbus_read_byte_data() call. Verified that the driver still functions correctly using a TSL2581 hooked up to a Raspberry Pi 2. Signed-off-by: Brian Masney <masneyb@onstation.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions