OSDN Git Service

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)
commita4887813c3a9481ab87c8a71ab1de50b975cc823
tree73640dff96d261e0af789f0f09e42e0e13cef47f
parenta1a68fcaf165a6ed202d8e29a692c559e10106c4
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