summaryrefslogtreecommitdiffstats
path: root/drivers/bus/fsl-mc/mc-sys.c
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2021-01-14 18:07:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-27 15:13:52 +0100
commit46707989269a251e5e4ca295975525605bc8afef (patch)
tree0e03a2518920fb080a2e38fed338b3a23465ba16 /drivers/bus/fsl-mc/mc-sys.c
parentbus: fsl-mc: move fsl_mc_command struct in a uapi header (diff)
downloadlinux-46707989269a251e5e4ca295975525605bc8afef.tar.xz
linux-46707989269a251e5e4ca295975525605bc8afef.zip
bus: fsl-mc: export mc_cmd_hdr_read_cmdid() to the fsl-mc bus
Export the mc_cmd_hdr_read_cmdid() function to the entire fsl-mc bus since it will be needed in the following patch. Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20210114170752.2927915-3-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bus/fsl-mc/mc-sys.c')
-rw-r--r--drivers/bus/fsl-mc/mc-sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/fsl-mc/mc-sys.c b/drivers/bus/fsl-mc/mc-sys.c
index 85a0225db522..b291b35e3884 100644
--- a/drivers/bus/fsl-mc/mc-sys.c
+++ b/drivers/bus/fsl-mc/mc-sys.c
@@ -35,7 +35,7 @@ static enum mc_cmd_status mc_cmd_hdr_read_status(struct fsl_mc_command *cmd)
return (enum mc_cmd_status)hdr->status;
}
-static u16 mc_cmd_hdr_read_cmdid(struct fsl_mc_command *cmd)
+u16 mc_cmd_hdr_read_cmdid(struct fsl_mc_command *cmd)
{
struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header;
u16 cmd_id = le16_to_cpu(hdr->cmd_id);