mailbox: Remove const from client argument of mbox_request_channel()
authorMark Brown <broonie@linaro.org>
Fri, 13 Jun 2014 20:40:45 +0000 (21:40 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 13 Jun 2014 20:50:25 +0000 (21:50 +0100)
commite5d1d7e3ec89d4e48d630c0f5f9bb2883706da53
tree0b818b45cb75d2878bb1aa9ad48db79e9e87ef1b
parent312629a7629e9be8858ae7452a2e1901863944f5
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 <broonie@linaro.org>
drivers/mailbox/mailbox.c
include/linux/mailbox_client.h