]> git.sur5r.net Git - u-boot/commitdiff
i.MX: iomux: input pad array can be const
authorEric Nelson <eric.nelson@boundarydevices.com>
Wed, 3 Oct 2012 07:26:37 +0000 (07:26 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 16 Oct 2012 10:35:11 +0000 (12:35 +0200)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
arch/arm/imx-common/iomux-v3.c
arch/arm/include/asm/imx-common/iomux-v3.h

index da093fbe1489ec516dfd41ea136377f0529563df..08fad7851c98e8d64ddc05b06b356884b3f7a75f 100644 (file)
@@ -54,9 +54,10 @@ int imx_iomux_v3_setup_pad(iomux_v3_cfg_t pad)
        return 0;
 }
 
-int imx_iomux_v3_setup_multiple_pads(iomux_v3_cfg_t *pad_list, unsigned count)
+int imx_iomux_v3_setup_multiple_pads(iomux_v3_cfg_t const *pad_list,
+                                    unsigned count)
 {
-       iomux_v3_cfg_t *p = pad_list;
+       iomux_v3_cfg_t const *p = pad_list;
        int i;
        int ret;
 
index 4558f4fba251c26172634d5180dc6e8d1f44c46b..c34bb76ad453d51292bee52003974c24fa057688 100644 (file)
@@ -98,6 +98,7 @@ typedef u64 iomux_v3_cfg_t;
 #define MUX_CONFIG_SION                (0x1 << 4)
 
 int imx_iomux_v3_setup_pad(iomux_v3_cfg_t pad);
-int imx_iomux_v3_setup_multiple_pads(iomux_v3_cfg_t *pad_list, unsigned count);
+int imx_iomux_v3_setup_multiple_pads(iomux_v3_cfg_t const *pad_list,
+                                    unsigned count);
 
 #endif /* __MACH_IOMUX_V3_H__*/