diff mbox

dmaengine: Make __dma_request_slave_channel_compat() name argument constant

Message ID 1439368259-2781-1-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Jarkko Nikula Aug. 12, 2015, 8:30 a.m. UTC
Inline function __dma_request_slave_channel_compat() doesn't modify "name"
argument but passes it to dma_request_slave_channel() which already takes
it as a constant.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
 include/linux/dmaengine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vinod Koul Aug. 17, 2015, 8:28 a.m. UTC | #1
On Wed, Aug 12, 2015 at 11:30:59AM +0300, Jarkko Nikula wrote:
> Inline function __dma_request_slave_channel_compat() doesn't modify "name"
> argument but passes it to dma_request_slave_channel() which already takes
> it as a constant.
> 
Applied, thanks
diff mbox

Patch

diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 8ad9a4e839f6..51101e5c5503 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -1189,7 +1189,7 @@  struct dma_chan *dma_get_any_slave_channel(struct dma_device *device);
 static inline struct dma_chan
 *__dma_request_slave_channel_compat(const dma_cap_mask_t *mask,
 				  dma_filter_fn fn, void *fn_param,
-				  struct device *dev, char *name)
+				  struct device *dev, const char *name)
 {
 	struct dma_chan *chan;