aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/of-dma.c
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2013-02-24 10:36:09 -0500
committerVinod Koul <vinod.koul@intel.com>2013-04-15 00:22:03 -0400
commitbef29ec508e58bf8b9ec0915de5b0739fb800c91 (patch)
treecd51452c8e8f1dcd1070daf0cf13f6cfa1e95b1f /drivers/dma/of-dma.c
parent41ef2d5678d83af030125550329b6ae8b74618fa (diff)
DMA: of: Constant names
No DMA of-function alters the name, so this patch changes the name arguments to be constant. Most drivers will probably request DMA channels using a constant name. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/of-dma.c')
-rw-r--r--drivers/dma/of-dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c
index 69d04d28b1ef..6036cd08e222 100644
--- a/drivers/dma/of-dma.c
+++ b/drivers/dma/of-dma.c
@@ -172,8 +172,8 @@ EXPORT_SYMBOL_GPL(of_dma_controller_free);
172 * specifiers, matches the name provided. Returns 0 if the name matches and 172 * specifiers, matches the name provided. Returns 0 if the name matches and
173 * a valid pointer to the DMA specifier is found. Otherwise returns -ENODEV. 173 * a valid pointer to the DMA specifier is found. Otherwise returns -ENODEV.
174 */ 174 */
175static int of_dma_match_channel(struct device_node *np, char *name, int index, 175static int of_dma_match_channel(struct device_node *np, const char *name,
176 struct of_phandle_args *dma_spec) 176 int index, struct of_phandle_args *dma_spec)
177{ 177{
178 const char *s; 178 const char *s;
179 179
@@ -198,7 +198,7 @@ static int of_dma_match_channel(struct device_node *np, char *name, int index,
198 * Returns pointer to appropriate dma channel on success or NULL on error. 198 * Returns pointer to appropriate dma channel on success or NULL on error.
199 */ 199 */
200struct dma_chan *of_dma_request_slave_channel(struct device_node *np, 200struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
201 char *name) 201 const char *name)
202{ 202{
203 struct of_phandle_args dma_spec; 203 struct of_phandle_args dma_spec;
204 struct of_dma *ofdma; 204 struct of_dma *ofdma;