diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-04-27 13:15:39 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-05-02 12:01:05 +0200 |
commit | 161c3d04aeca8a5bfffe3902786bdf0ccd8575c0 (patch) | |
tree | 8621889af6473cfda358062b7c1af2fa3249bc55 /drivers/dma/dw/regs.h | |
parent | dmaengine: dw: revisit data_width property (diff) | |
download | linux-161c3d04aeca8a5bfffe3902786bdf0ccd8575c0.tar.xz linux-161c3d04aeca8a5bfffe3902786bdf0ccd8575c0.zip |
dmaengine: dw: keep entire platform data in struct dw_dma
Keep the entire platform data in the struct dw_dma.
It makes the driver a bit cleaner.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/regs.h')
-rw-r--r-- | drivers/dma/dw/regs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h index 0ab02eb23bfc..4b7bd7834046 100644 --- a/drivers/dma/dw/regs.h +++ b/drivers/dma/dw/regs.h @@ -281,9 +281,8 @@ struct dw_dma { u8 all_chan_mask; u8 in_use; - /* hardware configuration */ - unsigned char nr_masters; - unsigned char data_width[DW_DMA_MAX_NR_MASTERS]; + /* platform data */ + struct dw_dma_platform_data *pdata; }; static inline struct dw_dma_regs __iomem *__dw_regs(struct dw_dma *dw) |