]> git.itanic.dy.fi Git - linux-stable/commit
gpio: regmap: use new regmap_might_sleep()
authorMichael Walle <michael@walle.cc>
Thu, 5 Jan 2023 15:06:03 +0000 (16:06 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:29 +0000 (15:55 +0100)
commit297a44f664a8ac2139c25c51ba0064cc12a6f1e5
tree76fd83afafe64ec630bb47440e615bcb1cb1aaf4
parent79aabb1ece8104b114516b059a2e42b33ed38be1
gpio: regmap: use new regmap_might_sleep()

Now that the regmap can be queried whether it might sleep, we can get
rid of the conservative setting "can_sleep = true". New drivers which
want to use gpio-regmap and can access the registers memory-mapped won't
have the restriction that their consumers have to use the
gpiod_*cansleep() variants anymore.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-regmap.c