iio: st_sensors: make detection more helpful
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Apr 2015 13:15:49 +0000 (15:15 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 May 2015 09:42:33 +0000 (10:42 +0100)
commit5e02bac3172fcad964eeef70ad21f583982a6eba
treedd26d9ace922a000c7525e9613ffa1a21c44a017
parentbb60646c8befe218d0bd49e71e62252cd6408ae5
iio: st_sensors: make detection more helpful

The ST sensors are detected by reading a WhoAmI register and
matching the number found to a sensor name string. To make it
easier to figure out what happens when things go wrong, print
the WhoAmI value and the device name we're trying to match.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/st_sensors/st_sensors_core.c
This page took 0.025069 seconds and 5 git commands to generate.