diff options
author | Richard Tresidder <rtresidd@electromag.com.au> | 2018-05-08 15:59:54 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-05-12 11:01:59 +0100 |
commit | 3345d4702329a4f5760f4c8100da391e07eb878d (patch) | |
tree | b929280c5a92b43534e02eb5a8ab6d916f555aaa /kernel/async.c | |
parent | e2fad7450306df281d21111620124954d4cb2cd9 (diff) |
iio: magnetometer: mag3110: Add ability to run in continuous mode
Adds the ability to run the Mag3110 in continuous mode to speed up the
sampling rate.
Depending on the sampling rate requested the device can be put in or out
of continuous mode automatically.
Shifting out of continuous mode requires a potential 1 / ODR wait which
is also implemented.
Modified the sleep method when data is not ready to allow for
sampling > 50sps to work.
Signed-off-by: Richard Tresidder <rtresidd@electromag.com.au>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'kernel/async.c')
0 files changed, 0 insertions, 0 deletions