regmap-irq: Refactor checks for status bulk read support
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Thu, 23 Jun 2022 21:14:15 +0000 (22:14 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2022 17:13:12 +0000 (18:13 +0100)
commitf7cc5062d6e5ca439708e8403b1a622cca75adf7
treecbdf161048f958131a0b0e6abdb45d4bb45ab021
parentad22b3e98f9430896bd4bd8f4fbff4667f02a0c8
regmap-irq: Refactor checks for status bulk read support

There are several conditions that must be satisfied to support
bulk read of status registers. Move the check into a function
to avoid duplicating it in two places.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220623211420.918875-8-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c