diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-10-30 11:26:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-04 16:55:37 +0100 |
commit | fc8850c0a1fcbbf75cf37969be54a5c01445d9aa (patch) | |
tree | 1cd7f38d27d8e607426bad4c816376da61caa857 /drivers/sn | |
parent | staging:iio:adis16400: Fix adis16334 sampling frequency control (diff) | |
download | linux-fc8850c0a1fcbbf75cf37969be54a5c01445d9aa.tar.xz linux-fc8850c0a1fcbbf75cf37969be54a5c01445d9aa.zip |
staging:iio:adis16400: Fix product id check
The product id check currently ANDs the read id with 0xF000 and compares the
result to the product id from the chip info. Since none of the product ids in
the chip info table end in 0x000 the check will always fail. Furthermore it is
also wrong, the product id in the PROD_ID register will always match the part
number of the device.
Some of the ADIS16XXX devices are identical from a software point of
view with the product id register having a different content. If we keep the
current scheme of storing the product id in the chip info table this would
require us to have multiple almost identical chip info table entries. So instead
this patch changes the code to parse the product id from the device name.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions