iio: chemical: atlas-ezo-sensor: add support for O2 sensor
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 23 Jul 2020 06:29:44 +0000 (09:29 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Aug 2020 09:53:13 +0000 (10:53 +0100)
commit6da3a6ce281fa7a51e1e3af0fa6d9e52bd9bf11a
tree621313800f2efd4ddd11e4e223911f4b6653b9d5
parent4ffa22fd22a7cbde1a1394b2707ea73593dc0fda
iio: chemical: atlas-ezo-sensor: add support for O2 sensor

Add support for the Atlas EZO O2 chemical sensor which required
some refactoring of the driver and parsing of i2c transfer.

Sensor data is converted by the scaling value from percent to
IIO_CONCENTRATION.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/atlas-ezo-sensor.c