]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: bma220: Convert to use ->read_avail()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 31 Aug 2020 09:08:07 +0000 (12:08 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:59 +0000 (19:40 +0100)
commit5258c74808adf925305fc0258cea78ed34edf454
tree236bfeeaca7b5aa9c6c43e8135c9b6a78b6f9f4b
parent25073c6cb125732c101a5c64d32cb8f547444c17
iio: accel: bma220: Convert to use ->read_avail()

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

While here, fix the typo in array definition and append comma in case of
the future extension.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200831090813.78841-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma220_spi.c