regmap: add regmap_might_sleep()
authorMichael Walle <michael@walle.cc>
Mon, 21 Nov 2022 15:08:42 +0000 (16:08 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2022 12:23:17 +0000 (12:23 +0000)
commita6d99022e56e8c1ddc4c75895ed9e3ce5da88453
tree7537b99e86ac937a24f11d3d0b65a405bfa488e3
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
regmap: add regmap_might_sleep()

With the dawn of MMIO gpio-regmap users, it is desirable to let
gpio-regmap ask the regmap if it might sleep during an access so
it can pass that information to gpiochip. Add a new regmap_might_sleep()
to query the regmap.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20221121150843.1562603-1-michael@walle.cc
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h