]> Pileus Git - ~andy/linux/blobdiff - drivers/dma/at_hdmac.c
dmaengine: at_hdmac: add a few const qualifiers
[~andy/linux] / drivers / dma / at_hdmac.c
index 7292aa87b2dd3fb54a4797f7c676d74a6a047713..3934fcc4e00b1b02778bb02866fb86073f9b1f0a 100644 (file)
@@ -9,10 +9,9 @@
  * (at your option) any later version.
  *
  *
- * This supports the Atmel AHB DMA Controller,
- *
- * The driver has currently been tested with the Atmel AT91SAM9RL
- * and AT91SAM9G45 series.
+ * This supports the Atmel AHB DMA Controller found in several Atmel SoCs.
+ * The only Atmel DMA Controller that is not covered by this driver is the one
+ * found on AT91SAM9263.
  */
 
 #include <linux/clk.h>
@@ -1217,7 +1216,7 @@ static const struct platform_device_id atdma_devtypes[] = {
        }
 };
 
-static inline struct at_dma_platform_data * __init at_dma_get_driver_data(
+static inline const struct at_dma_platform_data * __init at_dma_get_driver_data(
                                                struct platform_device *pdev)
 {
        if (pdev->dev.of_node) {
@@ -1255,7 +1254,7 @@ static int __init at_dma_probe(struct platform_device *pdev)
        int                     irq;
        int                     err;
        int                     i;
-       struct at_dma_platform_data *plat_dat;
+       const struct at_dma_platform_data *plat_dat;
 
        /* setup platform data for each SoC */
        dma_cap_set(DMA_MEMCPY, at91sam9rl_config.cap_mask);