dmaengine: Make __dma_request_slave_channel_compat() name argument constant
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 12 Aug 2015 08:30:59 +0000 (11:30 +0300)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Aug 2015 09:22:10 +0000 (14:52 +0530)
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>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dmaengine.h

index 1b866e9a6ed1ac9d02fbb93de197c44708a90742..3a732ac952850eec6df7052b34f87f21070e8168 100644 (file)
@@ -1229,7 +1229,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;