regmap: Add a config option for hwspinlock
authorMark Brown <broonie@kernel.org>
Fri, 3 Nov 2017 11:38:04 +0000 (12:38 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 3 Nov 2017 11:38:04 +0000 (12:38 +0100)
commitf25637a6b89e59eddf79f6df39b23e202753f555
tree1a957c0c714a688db42351d73c268449b4a7ffad
parent8698b9364710e7bac84b3af07dd410e39c8c2e08
regmap: Add a config option for hwspinlock

Unlike other lock types hwspinlocks are optional and can be built
modular so we can't use them unconditionally in regmap so add a config
option that drivers that want to use hwspinlocks with regmap can select
which will ensure that hwspinlock is built in.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/Kconfig
drivers/base/regmap/regmap.c