]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/hwspinlock/hwspinlock_core.c
hwspinlock: Add one new API to support getting a specific hwlock by the name
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 22 Jun 2018 08:08:58 +0000 (16:08 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 20:27:22 +0000 (13:27 -0700)
commit5560f70cad996e7d90d1c141bcbca0df214eefc9
tree4f53b895271a5699eb86b9b6fa6c254b9d976aeb
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
hwspinlock: Add one new API to support getting a specific hwlock by the name

The hardware spinlock binding already supplied the 'hwlock-names' property
to match and get a specific hwlock, but did not supply one API for users
to get a specific hwlock by the hwlock name. So this patch introduces one
API to support this requirement.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/hwspinlock_core.c
include/linux/hwspinlock.h