Commit 7fd63ccdad72335fd820b0ce5cb8edb6ca6419ce
Committed by
Vinod Koul
1 parent
f8609c2b52
Exists in
master
and in
20 other branches
dmaengine: at_hdmac: add a few const qualifiers
This prepares of_device_id.data becoming const. Without this change the following warning would occur: drivers/dma/at_hdmac.c: In function 'at_dma_get_driver_data': drivers/dma/at_hdmac.c:1228: warning: return discards qualifiers from pointer target type Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/dma/at_hdmac.c
... | ... | @@ -1216,7 +1216,7 @@ |
1216 | 1216 | } |
1217 | 1217 | }; |
1218 | 1218 | |
1219 | -static inline struct at_dma_platform_data * __init at_dma_get_driver_data( | |
1219 | +static inline const struct at_dma_platform_data * __init at_dma_get_driver_data( | |
1220 | 1220 | struct platform_device *pdev) |
1221 | 1221 | { |
1222 | 1222 | if (pdev->dev.of_node) { |
... | ... | @@ -1254,7 +1254,7 @@ |
1254 | 1254 | int irq; |
1255 | 1255 | int err; |
1256 | 1256 | int i; |
1257 | - struct at_dma_platform_data *plat_dat; | |
1257 | + const struct at_dma_platform_data *plat_dat; | |
1258 | 1258 | |
1259 | 1259 | /* setup platform data for each SoC */ |
1260 | 1260 | dma_cap_set(DMA_MEMCPY, at91sam9rl_config.cap_mask); |