]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: pressure: bmp280: Use gpiod_set_value_cansleep()
authorSalah Triki <salah.triki@gmail.com>
Sun, 24 Aug 2025 12:06:09 +0000 (13:06 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 Sep 2025 14:24:54 +0000 (15:24 +0100)
commit671b9b6d7f4fe17a174c410397e72253877ca64e
tree9c92fb13a48750e8a30fbf3376eef0b1d7362674
parent6233067494ae034484882e37ece378fa08bca6a4
iio: pressure: bmp280: Use gpiod_set_value_cansleep()

Replace `gpiod_set_value()` with `gpiod_set_value_cansleep()`, which is
required when the GPIO controller is connected via a slow bus such as
I2C. This is also safe to use in sleepable contexts like the driver
probe function.

Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c