Skip to content

Commit

Permalink
[ARM] pxa: fix incorrect mfp_to_gpio() conversion
Browse files Browse the repository at this point in the history
Since MFP_PIN_GPIO* now includes 128-255, mfp_to_gpio() is no longer
valid for those additional pins, fix it.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Eric Miao committed Nov 13, 2009
1 parent 15f593c commit 9da4ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-pxa/include/plat/mfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef __ASM_PLAT_MFP_H
#define __ASM_PLAT_MFP_H

#define mfp_to_gpio(m) ((m) % 128)
#define mfp_to_gpio(m) ((m) % 256)

/* list of all the configurable MFP pins */
enum {
Expand Down

0 comments on commit 9da4ea6

Please sign in to comment.