iio: pressure: bmp280: Convert to use ->read_avail()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Mar 2020 10:41:26 +0000 (12:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:19 +0000 (16:56 +0100)
commit6085102c494b8afc62bc093f8f32d6248f6d33e5
treedba260aa31b46b4c966084c148a5d210d929c157
parent97b31a6f5fb95b1ec6575b78a7240baddba34384
iio: pressure: bmp280: Convert to use ->read_avail()

Convert to use ->read_avail() instead of open-coded attribute handling.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c