lpc: Rename point_to_memory to lpc_map_memory
Change-Id: Iee32689e1c222a422aadf217d1fb0c817250de6b
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/lpc.c b/lpc.c
index a2fc6e6..2c8b00d 100644
--- a/lpc.c
+++ b/lpc.c
@@ -142,12 +142,12 @@
}
/*
- * point_to_memory() - Point the lpc bus mapping to the reserved memory region
+ * lpc_map_memory() - Point the lpc bus mapping to the reserved memory region
* @context: The mbox context pointer
*
* Return: 0 on success otherwise negative error code
*/
-int point_to_memory(struct mbox_context *context)
+int lpc_map_memory(struct mbox_context *context)
{
struct aspeed_lpc_ctrl_mapping map = {
.window_type = ASPEED_LPC_CTRL_WINDOW_MEMORY,
diff --git a/lpc.h b/lpc.h
index bf7ffcb..4d792de 100644
--- a/lpc.h
+++ b/lpc.h
@@ -7,7 +7,7 @@
int lpc_dev_init(struct mbox_context *context);
void lpc_dev_free(struct mbox_context *context);
int lpc_map_flash(struct mbox_context *context);
-int point_to_memory(struct mbox_context *context);
+int lpc_map_memory(struct mbox_context *context);
int reset_lpc(struct mbox_context *context);
#endif /* LPC_H */
diff --git a/mboxd_msg.c b/mboxd_msg.c
index 1254e8a..e7c701f 100644
--- a/mboxd_msg.c
+++ b/mboxd_msg.c
@@ -191,7 +191,7 @@
* mbox so point the LPC bus mapping to the reserved memory region now
* so the host can access what we put in it.
*/
- rc = point_to_memory(context);
+ rc = lpc_map_memory(context);
if (rc < 0) {
return rc;
}
diff --git a/vpnor/lpc_reset.cpp b/vpnor/lpc_reset.cpp
index 98fa2be..588def7 100644
--- a/vpnor/lpc_reset.cpp
+++ b/vpnor/lpc_reset.cpp
@@ -44,5 +44,5 @@
if (rc < 0)
return rc;
- return point_to_memory(context);
+ return lpc_map_memory(context);
}