Skip to content

Commit abd65dc

Browse files
committed
drivers: firmware: scmi: Rename mailbox tx callback name
Rename scmi_mbox_cb to scmi_mbox_tx_reply_cb, this is a preparation step for adding dedicated RX channel support. Signed-off-by: Yongxu Wang <[email protected]>
1 parent fc77ff9 commit abd65dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/firmware/scmi/mailbox.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
LOG_MODULE_REGISTER(scmi_mbox);
1111

12-
static void scmi_mbox_cb(const struct device *mbox,
13-
mbox_channel_id_t channel_id,
14-
void *user_data,
15-
struct mbox_msg *data)
12+
static void scmi_mbox_tx_reply_cb(const struct device *mbox,
13+
mbox_channel_id_t channel_id,
14+
void *user_data,
15+
struct mbox_msg *data)
1616
{
1717
struct scmi_channel *scmi_chan = user_data;
1818

@@ -81,7 +81,7 @@ static int scmi_mbox_setup_chan(const struct device *transport,
8181
tx_reply = &mbox_chan->tx;
8282
}
8383

84-
ret = mbox_register_callback_dt(tx_reply, scmi_mbox_cb, chan);
84+
ret = mbox_register_callback_dt(tx_reply, scmi_mbox_tx_reply_cb, chan);
8585
if (ret < 0) {
8686
LOG_ERR("failed to register tx reply cb");
8787
return ret;

0 commit comments

Comments
 (0)