summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/mt_scp/ipi.c2
-rw-r--r--chip/mt_scp/ipi_chip.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/chip/mt_scp/ipi.c b/chip/mt_scp/ipi.c
index 5ec49d318d..05bbed890b 100644
--- a/chip/mt_scp/ipi.c
+++ b/chip/mt_scp/ipi.c
@@ -59,7 +59,7 @@ static inline void try_to_wakeup_ap(int32_t id)
}
/* Send data from SCP to AP. */
-int ipi_send(int32_t id, void *buf, uint32_t len, int wait)
+int ipi_send(int32_t id, const void *buf, uint32_t len, int wait)
{
/*
* TODO(b:117917141): Evaluate if we can remove this once we have the
diff --git a/chip/mt_scp/ipi_chip.h b/chip/mt_scp/ipi_chip.h
index b6eeddfc87..085c1415af 100644
--- a/chip/mt_scp/ipi_chip.h
+++ b/chip/mt_scp/ipi_chip.h
@@ -47,7 +47,7 @@ struct ipc_shared_obj {
};
/* Send a IPI contents to AP. */
-int ipi_send(int32_t id, void *buf, uint32_t len, int wait);
+int ipi_send(int32_t id, const void *buf, uint32_t len, int wait);
/* Size of the rpmsg device name, should sync across kernel and EC. */
#define RPMSG_NAME_SIZE 32