dmaengine: PL08x: constify channel names and bus_id strings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 May 2012 09:18:55 +0000 (10:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Jul 2012 13:15:41 +0000 (14:15 +0100)
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/dma/amba-pl08x.c
include/linux/amba/pl08x.h

index 9494990..775efef 100644 (file)
@@ -237,7 +237,7 @@ struct pl08x_dma_chan {
        struct pl08x_phy_chan *phychan;
        int phychan_hold;
        struct tasklet_struct tasklet;
-       char *name;
+       const char *name;
        const struct pl08x_channel_data *cd;
        dma_addr_t src_addr;
        dma_addr_t dst_addr;
index 48d02bf..158ce26 100644 (file)
@@ -58,7 +58,7 @@ enum {
  * these buses (use PL08X_AHB1 | PL08X_AHB2).
  */
 struct pl08x_channel_data {
-       char *bus_id;
+       const char *bus_id;
        int min_signal;
        int max_signal;
        u32 muxval;