Skip to content
Commit fb7737e9 authored by Suman Anna's avatar Suman Anna Committed by Ohad Ben-Cohen
Browse files

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: default avatarSuman Anna <s-anna@ti.com>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
[small comment clarification]
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 0ce8cf2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment