mailbox: Add ability for clients to request channels by name
authorLee Jones <lee.jones@linaro.org>
Mon, 11 May 2015 16:08:50 +0000 (17:08 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 11 Jun 2015 16:49:45 +0000 (22:19 +0530)
commitdfabde206aa10ae71a89ba75e68b1f58a6336a05
tree830d0e9e2b7ae1a090c02bd9d0293ccb011bdb90
parent0bae6af6d704f026d4938739786e0a69d50177ca
mailbox: Add ability for clients to request channels by name

This patch supplies a new framework API; mbox_request_channel_byname().

It works by supplying the usual client pointer as the first argument and
a string as the second.  The API will search the client's node for a
'mbox-names' property then request a channel in the normal way using the
requested string's index as the expected second 'index' argument.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c
include/linux/mailbox_client.h