iio: chemical: bme680: simplify oversampling handling
authorDavid Frey <dpfrey@gmail.com>
Fri, 17 Aug 2018 19:03:19 +0000 (12:03 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 16:11:42 +0000 (17:11 +0100)
commit79fd571b7a4915cee0de64314ea08d8a2ffe8e78
treef41b44cf0c2420e6e3ac80b9991537ccf714cf50
parent3dcb60cd926ebfc8f85603d226457c9a38794209
iio: chemical: bme680: simplify oversampling handling

Temperature, pressure and humidity all expose and oversampling setting
that works in the same way.  Provide common handling for the
oversampling sysfs attributes.

Signed-off-by: David Frey <dpfrey@gmail.com>
Reviewed-by: Himanshu Jha <himanshujha199640@gmail.com>
Tested-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/bme680_core.c