mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
iio: magnetometer: mmc35240: Use a smaller sleep value
According to datasheet, Page 8, minimum wait time to complete
measurement is 10ms. Adjusting this value will increase the
userspace polling rate.
Fixes: abeb6b1e7b
("iio: magnetometer: Add support for MEMSIC MMC35240")
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
c2890547a0
commit
787f55c4d1
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ static int mmc35240_take_measurement(struct mmc35240_data *data)
|
|||
return ret;
|
||||
if (reg_status & MMC35240_STATUS_MEAS_DONE_BIT)
|
||||
break;
|
||||
msleep(20);
|
||||
/* minimum wait time to complete measurement is 10 ms */
|
||||
usleep_range(10000, 11000);
|
||||
}
|
||||
|
||||
if (tries < 0) {
|
||||
|
|
Loading…
Reference in a new issue