[Blackfin] arch: declare list of peripherals as const since we dont modify the incoming array

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
Mike Frysinger 2008-04-24 05:04:24 +08:00 committed by Bryan Wu
parent 5d1617b247
commit 681793711a
2 changed files with 4 additions and 4 deletions

View File

@ -941,7 +941,7 @@ int peripheral_request(unsigned short per, const char *label)
EXPORT_SYMBOL(peripheral_request); EXPORT_SYMBOL(peripheral_request);
#endif #endif
int peripheral_request_list(unsigned short per[], const char *label) int peripheral_request_list(const unsigned short per[], const char *label)
{ {
u16 cnt; u16 cnt;
int ret; int ret;
@ -994,7 +994,7 @@ void peripheral_free(unsigned short per)
} }
EXPORT_SYMBOL(peripheral_free); EXPORT_SYMBOL(peripheral_free);
void peripheral_free_list(unsigned short per[]) void peripheral_free_list(const unsigned short per[])
{ {
u16 cnt; u16 cnt;
for (cnt = 0; per[cnt] != 0; cnt++) for (cnt = 0; per[cnt] != 0; cnt++)

View File

@ -17,8 +17,8 @@
int peripheral_request(unsigned short per, const char *label); int peripheral_request(unsigned short per, const char *label);
void peripheral_free(unsigned short per); void peripheral_free(unsigned short per);
int peripheral_request_list(unsigned short per[], const char *label); int peripheral_request_list(const unsigned short per[], const char *label);
void peripheral_free_list(unsigned short per[]); void peripheral_free_list(const unsigned short per[]);
#include <asm/gpio.h> #include <asm/gpio.h>
#include <asm/mach/portmux.h> #include <asm/mach/portmux.h>