diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-08-19 17:29:16 (GMT) |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-09-11 06:18:13 (GMT) |
commit | 4d130de20c3f39fc1a1aecd3969b50d49ff2e358 (patch) | |
tree | 516da38bd5d9114a6a3b2140fb8c69a873162976 /drivers/dma/dw/internal.h | |
parent | 8950052029874a6738552debb45077c596e90e6b (diff) | |
download | linux-4d130de20c3f39fc1a1aecd3969b50d49ff2e358.tar.xz |
dmaengine: dw: introduce generic filter function
The introduced filter function would be reused in the ACPI and DT cases since
in those cases we have to apply mandatory data to the requested channel. Thus,
patch moves platform driver to use it in that case.
The function unlikely can't be used by users of the driver due to an implicit
dependency to the dw_dmac_core module.
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/internal.h')
-rw-r--r-- | drivers/dma/dw/internal.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/dma/dw/internal.h b/drivers/dma/dw/internal.h index 43cc1df..2c8d02f 100644 --- a/drivers/dma/dw/internal.h +++ b/drivers/dma/dw/internal.h @@ -43,28 +43,6 @@ int dw_dma_resume(struct dw_dma_chip *chip); #endif /* CONFIG_PM_SLEEP */ -/** - * dwc_get_dms - get destination master - * @slave: pointer to the custom slave configuration - * - * Returns destination master in the custom slave configuration if defined, or - * default value otherwise. - */ -static inline unsigned int dwc_get_dms(struct dw_dma_slave *slave) -{ - return slave ? slave->dst_master : 0; -} - -/** - * dwc_get_sms - get source master - * @slave: pointer to the custom slave configuration - * - * Returns source master in the custom slave configuration if defined, or - * default value otherwise. - */ -static inline unsigned int dwc_get_sms(struct dw_dma_slave *slave) -{ - return slave ? slave->src_master : 1; -} +extern bool dw_dma_filter(struct dma_chan *chan, void *param); #endif /* _DW_DMAC_INTERNAL_H */ |