]> err.no Git - linux-2.6/commitdiff
[Blackfin] arch: declare list of peripherals as const since we dont modify the incomi...
authorMike Frysinger <vapier.adi@gmail.com>
Wed, 23 Apr 2008 21:04:24 +0000 (05:04 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 23 Apr 2008 21:04:24 +0000 (05:04 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/bfin_gpio.c
include/asm-blackfin/portmux.h

index 72477c252a94b7a31a62dab1eda522634eb4f5b9..fcb2f6cf430b812078906fe8c41ab0d04c7a4c55 100644 (file)
@@ -941,7 +941,7 @@ int peripheral_request(unsigned short per, const char *label)
 EXPORT_SYMBOL(peripheral_request);
 #endif
 
-int peripheral_request_list(unsigned short per[], const char *label)
+int peripheral_request_list(const unsigned short per[], const char *label)
 {
        u16 cnt;
        int ret;
@@ -994,7 +994,7 @@ void peripheral_free(unsigned short per)
 }
 EXPORT_SYMBOL(peripheral_free);
 
-void peripheral_free_list(unsigned short per[])
+void peripheral_free_list(const unsigned short per[])
 {
        u16 cnt;
        for (cnt = 0; per[cnt] != 0; cnt++)
index 0d3f650d2d99ad50ecc4dc4269d1117581985507..0807b286cd9e9e5fa9ebfeb92bc81f953fefb3eb 100644 (file)
@@ -17,8 +17,8 @@
 
 int peripheral_request(unsigned short per, const char *label);
 void peripheral_free(unsigned short per);
-int peripheral_request_list(unsigned short per[], const char *label);
-void peripheral_free_list(unsigned short per[]);
+int peripheral_request_list(const unsigned short per[], const char *label);
+void peripheral_free_list(const unsigned short per[]);
 
 #include <asm/gpio.h>
 #include <asm/mach/portmux.h>