mailbox: apple: Staticize and constify driver ops
Set the ops structure as static const. The structure is not accessible from outside of this driver and is not going to be modified at runtime. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Acked-by: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
@@ -59,7 +59,7 @@ static int apple_mbox_recv(struct mbox_chan *chan, void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct mbox_ops apple_mbox_ops = {
|
||||
static const struct mbox_ops apple_mbox_ops = {
|
||||
.of_xlate = apple_mbox_of_xlate,
|
||||
.send = apple_mbox_send,
|
||||
.recv = apple_mbox_recv,
|
||||
|
||||
Reference in New Issue
Block a user