diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-09-11 18:29:16 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-09-12 20:19:16 +0100 |
commit | 1696566f995cfd4ddf3f167b4097cdc83f1458f2 (patch) | |
tree | 80389a4bf3ec17120542f7fa1cee3a9630d6c438 /drivers/iio/adc/at91_adc.c | |
parent | 7ba4b884b7a890e240a13f5f65d607721e80396a (diff) |
iio: accel: mxc6255: Fix chip-id check
The initial commit adding support for the mxc6225 assumed the
mxc6225 has a chip-id of 0xe5 based on testing on a single Allwinner
A23 tablet with a mxc6225. Testing on a bunch of other Allwinner
tablets have shown that the chip-id for the mxc6225 is not constant.
A datasheet for the MXC6255 which I've found online says that bits
7 and 6 of the chip-id register are undefined (for the mxc6255), testing
on 5 different tablets with a mxc6225 has found the following ids:
0x25, 0x45, 0x65, 0x85, 0xe5. So it seems that for the mxc6225 bits
7, 6 and 5 of the chip-id register are undefined.
This commit adjusts the chip-id check so that the mxc6255 driver
properly recognizes the mxc6225 in all these tablets.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/at91_adc.c')
0 files changed, 0 insertions, 0 deletions