]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0da896ad2a5f1674a5b1676ecec7b6f62a96237
tree506a1af3b90dccfe6579eec53b1e9585ebaf4d29
parent09d23a1cf9b5413c1255a85fdc77f4021605adbe
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