iio:pressure:ms5637: introduce hardware differentiation
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 9 Jan 2021 23:11:44 +0000 (00:11 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:06 +0000 (08:52 +0000)
commit8c125f5f325e5caf171f6af95b7cfe7f3e3ba78b
treed649725fbd6f08e3bcff40e19f5e7fad09318bb3
parentd1004b707d8b4c05f20bed7506b99d58495d9046
iio:pressure:ms5637: introduce hardware differentiation

Some sensors in the ms58xx family have a different PROM length and a
different number of available resolution. introduce struct ms_tp_hw_data to
handle those differences.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210109231148.1168104-3-alexandre.belloni@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/ms_sensors/ms_sensors_i2c.h
drivers/iio/pressure/ms5637.c