From b604ab389db043988bc6c5a211dd1889091db871 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Fri, 13 Jun 2014 21:40:45 +0100 Subject: mailbox: Remove const from client argument of mbox_request_channel() The struct mbox_client supplied to mbox_request_channel() is const but it is stored in the channel in a non-constant member causing compiler warnings. While the mailbox API should treat the struct mailbox_client as const itself the struct is passed back to the channel in callbacks without a const so we need to either remove the const, change the callbacks to take const or cast the const away when doing callbacks. Take the simplest option and just remove the const. Signed-off-by: Mark Brown --- drivers/mailbox/mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index ae4abd9f751..662f8e55047 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -294,7 +294,7 @@ EXPORT_SYMBOL_GPL(mbox_send_message); * Return: Pointer to the channel assigned to the client if successful. * ERR_PTR for request failure. */ -struct mbox_chan *mbox_request_channel(const struct mbox_client *cl) +struct mbox_chan *mbox_request_channel(struct mbox_client *cl) { struct device *dev = cl->dev; struct mbox_controller *mbox; -- cgit v1.2.3