]> git.baikalelectronics.ru Git - kernel.git/commit
iio: temperature: mlx90632 Relax the compatibility check
authorCrt Mori <cmo@melexis.com>
Thu, 23 May 2019 12:07:22 +0000 (14:07 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2019 09:52:30 +0000 (10:52 +0100)
commit96e2368059be71445d36cda7aa4d79f76f327570
treec2206a09fd6106beb7edec256b24d3b6a76440c6
parentac4aa0168c0c112b763bd9b71d6f19cdd14f189f
iio: temperature: mlx90632 Relax the compatibility check

Register EE_VERSION contains mixture of calibration information and DSP
version. So far, because calibrations were definite, the driver
compatibility depended on whole contents, but in the newer production
process the calibration part changes. Because of that, value in EE_VERSION
will be changed and to avoid that calibration value is same as DSP version
the MSB in calibration part was fixed to 1.
That means existing calibrations (medical and consumer) will now have
hex values (bits 8 to 15) of 83 and 84 respectively. Driver compatibility
should be based only on DSP version part of the EE_VERSION (bits 0 to 7)
register.

Signed-off-by: Crt Mori <cmo@melexis.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90632.c