iio: chemical: atlas-sensor: add helper function atlas_buffer_num_channels()
authorMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 4 Jan 2020 01:29:08 +0000 (17:29 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 12 Jan 2020 11:34:16 +0000 (11:34 +0000)
commit4766897a9d3bd6af171cdc5ff140e8d132d62d40
treedfcc45e0ba2feddc5d7978c895730939adf15897
parentf335fa7034d5444de53f22824afce52924d95253
iio: chemical: atlas-sensor: add helper function atlas_buffer_num_channels()

Add helper function to detect the number of channels to output
in trigger handler. This is based on IIO_TIMESTAMP channel being the
delimiter between input and output channels.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/atlas-sensor.c