]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Add one flag to indicate if a hwlock should be used
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 25 Dec 2017 06:37:09 +0000 (14:37 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 27 Dec 2017 10:37:03 +0000 (10:37 +0000)
commit288c08ba67c788fe3af00bcd0bec9cef6ca39663
tree73640dff96d261e0af789f0f09e42e0e13cef47f
parent83e8b46841b748bd401b33a13409fa9bbcda49c2
regmap: Add one flag to indicate if a hwlock should be used

Since the hwlock id 0 is valid for hardware spinlock core, but now id 0
is treated as one invalid value for regmap. Thus we should add one extra
flag for regmap config to indicate if a hardware spinlock should be used,
then id 0 can be valid for regmap to request.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h