diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-14 07:41:56 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-04-22 12:04:49 -0400 |
commit | 8df4053f0532df8fe47d0434af51676b0fa65491 (patch) | |
tree | 7772ce391252660ae1520013913f6c0cc5fa6f8e /include/linux/platform_data | |
parent | a798c10faf62a505d24e5f6213fbaf904a39623f (diff) |
platform_data: edma: Be precise with the paRAM struct
The edmacc_param struct should follow the layout of the paRAM area in the
HW. Be explicit on the size of the fields (u32) and also mark the struct
as packed to avoid any padding on non 32bit architectures.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/edma.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/platform_data/edma.h b/include/linux/platform_data/edma.h index f50821cb64be..923f8a3e4ce0 100644 --- a/include/linux/platform_data/edma.h +++ b/include/linux/platform_data/edma.h | |||
@@ -43,15 +43,15 @@ | |||
43 | 43 | ||
44 | /* PaRAM slots are laid out like this */ | 44 | /* PaRAM slots are laid out like this */ |
45 | struct edmacc_param { | 45 | struct edmacc_param { |
46 | unsigned int opt; | 46 | u32 opt; |
47 | unsigned int src; | 47 | u32 src; |
48 | unsigned int a_b_cnt; | 48 | u32 a_b_cnt; |
49 | unsigned int dst; | 49 | u32 dst; |
50 | unsigned int src_dst_bidx; | 50 | u32 src_dst_bidx; |
51 | unsigned int link_bcntrld; | 51 | u32 link_bcntrld; |
52 | unsigned int src_dst_cidx; | 52 | u32 src_dst_cidx; |
53 | unsigned int ccnt; | 53 | u32 ccnt; |
54 | }; | 54 | } __packed; |
55 | 55 | ||
56 | /* fields in edmacc_param.opt */ | 56 | /* fields in edmacc_param.opt */ |
57 | #define SAM BIT(0) | 57 | #define SAM BIT(0) |