]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: cdc: ad7746: Use read_avail() rather than opencoding.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Jun 2022 12:29:34 +0000 (13:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:30:01 +0000 (22:30 +0100)
commit5d12b7461fef58be83ba0cb56bf63613023a8afc
tree5dcfaf5eb343c839ac12f7898d40e274b8b943c7
parent6b310c0edde6aa58e3f2ea3bb38f8a32175ec263
staging: iio: cdc: ad7746: Use read_avail() rather than opencoding.

Switch over to the IIO core handling for _available attributes
making them available for in kernel users and enforcing correct
naming etc automatically.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220626122938.582107-14-jic23@kernel.org
drivers/staging/iio/cdc/ad7746.c