Searched hist:"83 e6415d565f6ddfa12a58c3f854c4504bdaa7f9" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/health/ |
H A D | max30102.c | diff 83e6415d565f6ddfa12a58c3f854c4504bdaa7f9 Fri Oct 27 14:45:40 CDT 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net> iio: health: max30102: Move mode setting to buffer_postenable
Move the programming of the mode setting from init() to buffer_postenable()
Split out a separate function to only update the power/shutdown bit
This changes permits to more easily implement different modes of measurements in further patches
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Acked-by: Matt Ranostay <matt.ranostay@konsulko.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|