iio: chemical: sps30: allow changing self cleaning period
authorTomasz Duszynski <tduszyns@gmail.com>
Tue, 15 Jan 2019 19:00:06 +0000 (20:00 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 19 Jan 2019 17:56:34 +0000 (17:56 +0000)
commit62129a0849d27cc94ced832bcf9dcde283dcbe08
treed1c8b6eee275986fa9000541253b48d3b0cc3bb2
parent8b1352a008bc49fce5bf8b86b9e7fe433f387705
iio: chemical: sps30: allow changing self cleaning period

Sensor can periodically trigger self cleaning. Period can be changed by
writing a new value to a dedicated attribute. Upon attribute read
current period gets returned.

Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-iio-sps30
drivers/iio/chemical/sps30.c