regmap-irq: Add handle_mask_sync() callback
authorWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 22 Nov 2022 07:10:59 +0000 (02:10 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 9 Dec 2022 17:39:33 +0000 (17:39 +0000)
commit69af4bcaa08d06fd4d788a7f7193fb3c40ac6aba
tree5904aca64ba1e6526d9591e7d056865f53975718
parentacdce7aa7a4fc1094661feb0b833ae2eec2ad2d0
regmap-irq: Add handle_mask_sync() callback

Provide a public callback handle_mask_sync() that drivers can use when
they have more complex IRQ masking logic. The default implementation is
regmap_irq_handle_mask_sync(), used if the chip doesn't provide its own
callback.

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/e083474b3d467a86e6cb53da8072de4515bd6276.1669100542.git.william.gray@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h