staging: iio: tsl2583: removed unused code from device probing
authorBrian Masney <masneyb@onstation.org>
Thu, 3 Nov 2016 12:56:13 +0000 (08:56 -0400)
committerJonathan Cameron <jic23@kernel.org>
Sun, 6 Nov 2016 11:46:11 +0000 (11:46 +0000)
commit6bd0cb2b594b4a735301245cf9387c9c671e6168
tree506a1af3b90dccfe6579eec53b1e9585ebaf4d29
parent6ba5dee90b2483f8a78081376f56e6b65c10ea92
staging: iio: tsl2583: removed unused code from device probing

taos_probe() queries the all of the sensor's registers and loads all of
the values into a buffer stored on the stack. Only the chip ID register
was actually used. Change the probe function to just query the chip ID
register on the device.

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>
drivers/staging/iio/light/tsl2583.c