diff options
author | 2021-01-14 19:07:48 +0200 | |
---|---|---|
committer | 2021-01-27 15:13:52 +0100 | |
commit | 8544717cdacc2f33f0f53a3b34c5125b37e13ce9 (patch) | |
tree | 1bc844a038dadc1600eb6fd684bdb76093e88c6c /include/linux/fsl | |
parent | w1: w1_therm: Fix conversion result for negative temperatures (diff) | |
download | linux-8544717cdacc2f33f0f53a3b34c5125b37e13ce9.tar.gz linux-8544717cdacc2f33f0f53a3b34c5125b37e13ce9.tar.bz2 linux-8544717cdacc2f33f0f53a3b34c5125b37e13ce9.zip |
bus: fsl-mc: move fsl_mc_command struct in a uapi header
Define "struct fsl_mc_command" as a structure that can cross the
user/kernel boundary.
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-2-ciorneiioana@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fsl')
-rw-r--r-- | include/linux/fsl/mc.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/fsl/mc.h b/include/linux/fsl/mc.h index db244874e834..63b56aba925a 100644 --- a/include/linux/fsl/mc.h +++ b/include/linux/fsl/mc.h @@ -13,6 +13,7 @@ #include <linux/device.h> #include <linux/mod_devicetable.h> #include <linux/interrupt.h> +#include <uapi/linux/fsl_mc.h> #define FSL_MC_VENDOR_FREESCALE 0x1957 @@ -209,8 +210,6 @@ struct fsl_mc_device { #define to_fsl_mc_device(_dev) \ container_of(_dev, struct fsl_mc_device, dev) -#define MC_CMD_NUM_OF_PARAMS 7 - struct mc_cmd_header { u8 src_id; u8 flags_hw; @@ -220,11 +219,6 @@ struct mc_cmd_header { __le16 cmd_id; }; -struct fsl_mc_command { - __le64 header; - __le64 params[MC_CMD_NUM_OF_PARAMS]; -}; - enum mc_cmd_status { MC_CMD_STATUS_OK = 0x0, /* Completed successfully */ MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */ |