hwspinlock/core: add device tree support
authorSuman Anna <s-anna@ti.com>
Thu, 5 Mar 2015 02:01:14 +0000 (20:01 -0600)
committerOhad Ben-Cohen <ohad@wizery.com>
Sat, 2 May 2015 06:54:30 +0000 (09:54 +0300)
commitfb7737e949e31d8a71acee6bbb670f32dbd2a2c0
tree57ba40cfa05ca8a34211f3cbd97f77625beeed0a
parent0ce8cf2f31d661a27b7656e791acacb86eb58739
hwspinlock/core: add device tree support

This patch adds a new OF-friendly API of_hwspin_lock_get_id()
for hwspinlock clients to use/request locks from a hwspinlock
device instantiated through a device-tree blob. This new API
can be used by hwspinlock clients to get the id for a specific
lock using the phandle + args specifier, so that it can be
requested using the available hwspin_lock_request_specific()
API.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
[small comment clarification]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Documentation/hwspinlock.txt
drivers/hwspinlock/hwspinlock_core.c
include/linux/hwspinlock.h