git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus
[pandora-kernel.git]
/
arch
/
arm
/
mach-mxc91231
/
iomux.c
diff --git
a/arch/arm/mach-mxc91231/iomux.c
b/arch/arm/mach-mxc91231/iomux.c
index
405d9b1
..
66fc41c
100644
(file)
--- a/
arch/arm/mach-mxc91231/iomux.c
+++ b/
arch/arm/mach-mxc91231/iomux.c
@@
-50,7
+50,7
@@
unsigned long mxc_pin_alloc_map[NB_PORTS * 32 / BITS_PER_LONG];
/*
* set the mode for a IOMUX pin.
*/
/*
* set the mode for a IOMUX pin.
*/
-int mxc_iomux_mode(
const
unsigned int pin_mode)
+int mxc_iomux_mode(unsigned int pin_mode)
{
u32 side, field, l, mode, ret = 0;
void __iomem *reg;
{
u32 side, field, l, mode, ret = 0;
void __iomem *reg;
@@
-114,7
+114,7
@@
EXPORT_SYMBOL(mxc_iomux_set_pad);
* - reserves the pin so that it is not claimed by another driver
* - setups the iomux according to the configuration
*/
* - reserves the pin so that it is not claimed by another driver
* - setups the iomux according to the configuration
*/
-int mxc_iomux_alloc_pin(
const
unsigned int pin_mode, const char *label)
+int mxc_iomux_alloc_pin(unsigned int pin_mode, const char *label)
{
unsigned pad = PIN_GLOBAL_NUM(pin_mode);
if (pad >= (PIN_MAX + 1)) {
{
unsigned pad = PIN_GLOBAL_NUM(pin_mode);
if (pad >= (PIN_MAX + 1)) {
@@
-134,10
+134,10
@@
int mxc_iomux_alloc_pin(const unsigned int pin_mode, const char *label)
}
EXPORT_SYMBOL(mxc_iomux_alloc_pin);
}
EXPORT_SYMBOL(mxc_iomux_alloc_pin);
-int mxc_iomux_setup_multiple_pins(unsigned int *pin_list, unsigned count,
+int mxc_iomux_setup_multiple_pins(
const
unsigned int *pin_list, unsigned count,
const char *label)
{
const char *label)
{
- unsigned int *p = pin_list;
+
const
unsigned int *p = pin_list;
int i;
int ret = -EINVAL;
int i;
int ret = -EINVAL;
@@
-155,7
+155,7
@@
setup_error:
}
EXPORT_SYMBOL(mxc_iomux_setup_multiple_pins);
}
EXPORT_SYMBOL(mxc_iomux_setup_multiple_pins);
-void mxc_iomux_release_pin(
const
unsigned int pin_mode)
+void mxc_iomux_release_pin(unsigned int pin_mode)
{
unsigned pad = PIN_GLOBAL_NUM(pin_mode);
{
unsigned pad = PIN_GLOBAL_NUM(pin_mode);
@@
-164,9
+164,9
@@
void mxc_iomux_release_pin(const unsigned int pin_mode)
}
EXPORT_SYMBOL(mxc_iomux_release_pin);
}
EXPORT_SYMBOL(mxc_iomux_release_pin);
-void mxc_iomux_release_multiple_pins(unsigned int *pin_list, int count)
+void mxc_iomux_release_multiple_pins(
const
unsigned int *pin_list, int count)
{
{
- unsigned int *p = pin_list;
+
const
unsigned int *p = pin_list;
int i;
for (i = 0; i < count; i++) {
int i;
for (i = 0; i < count; i++) {