Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: chemical: bme680: move to fsleep()

Use the new fsleep() function in the remaining driver instances.

Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241021195316.58911-6-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Vasileios Amoiridis and committed by
Jonathan Cameron
924f9f7d eea9a115

+2 -2
+2 -2
drivers/iio/chemical/bme680_core.c
··· 546 546 data->oversampling_humid) * 1936) + (477 * 4) + 547 547 (477 * 5) + 1000 + (data->heater_dur * 1000); 548 548 549 - usleep_range(wait_eoc_us, wait_eoc_us + 100); 549 + fsleep(wait_eoc_us); 550 550 551 551 ret = regmap_read(data->regmap, BME680_REG_MEAS_STAT_0, &data->check); 552 552 if (ret) { ··· 894 894 if (ret < 0) 895 895 return dev_err_probe(dev, ret, "Failed to reset chip\n"); 896 896 897 - usleep_range(BME680_STARTUP_TIME_US, BME680_STARTUP_TIME_US + 1000); 897 + fsleep(BME680_STARTUP_TIME_US); 898 898 899 899 ret = regmap_read(regmap, BME680_REG_CHIP_ID, &data->check); 900 900 if (ret < 0)