Skip to content

Commit

Permalink
dw_dmac: Changing type of src_master and dest_master to u8.
Browse files Browse the repository at this point in the history
src_master & dest_master don't required u32 as they have values limited to u8
only. Also their description is missing from doc style comment. This patch
fixes above mentioned issues.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Viresh Kumar authored and Vinod Koul committed Mar 6, 2011
1 parent 93317e8 commit 59c22fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/linux/dw_dmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ enum dw_dma_slave_width {
* @reg_width: peripheral register width
* @cfg_hi: Platform-specific initializer for the CFG_HI register
* @cfg_lo: Platform-specific initializer for the CFG_LO register
* @src_master: src master for transfers on allocated channel.
* @dst_master: dest master for transfers on allocated channel.
*/
struct dw_dma_slave {
struct device *dma_dev;
Expand All @@ -61,8 +63,8 @@ struct dw_dma_slave {
enum dw_dma_slave_width reg_width;
u32 cfg_hi;
u32 cfg_lo;
int src_master;
int dst_master;
u8 src_master;
u8 dst_master;
};

/* Platform-configurable bits in CFG_HI */
Expand Down

0 comments on commit 59c22fc

Please sign in to comment.