iio: mpl3115: add separate function for triggered buffer data collection

Factor out the code responsible for collecting data for the triggered
buffer from the trigger handler into a separate function.

Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Antoni Pokusinski 2025-10-02 22:02:03 +02:00 • committed by Jonathan Cameron
commit f692f0bfdf