4 Jun 2011 00:44
[PATCH v2 5/7] msm: gpiomux: Move public API to public header
David Brown <davidb <at> codeaurora.org>
2011-06-03 22:44:17 GMT
2011-06-03 22:44:17 GMT
The gpiomux.h header contains some SOC ifdefs. However, the API that is actually used by the GPIO driver only uses two functions that are general. Move these general definitions into a public header file. Signed-off-by: David Brown <davidb <at> codeaurora.org> Acked-by: Linus Walleij <linus.walleij <at> linaro.org> Acked-by: Nicolas Pitre <nicolas.pitre <at> linaro.org> --- arch/arm/mach-msm/gpio.c | 2 +- arch/arm/mach-msm/gpiomux.h | 17 +----------- arch/arm/mach-msm/include/mach/msm_gpiomux.h | 38 ++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 17 deletions(-) create mode 100644 arch/arm/mach-msm/include/mach/msm_gpiomux.h diff --git a/arch/arm/mach-msm/gpio.c b/arch/arm/mach-msm/gpio.c index e96199d..6767deb 100644 --- a/arch/arm/mach-msm/gpio.c +++ b/arch/arm/mach-msm/gpio.c <at> <at> -21,8 +21,8 <at> <at> #include <linux/irq.h> #include <linux/module.h> #include <mach/cpu.h> +#include <mach/msm_gpiomux.h> #include "gpio_hw.h" -#include "gpiomux.h" #define FIRST_GPIO_IRQ MSM_GPIO_TO_INT(0) diff --git a/arch/arm/mach-msm/gpiomux.h b/arch/arm/mach-msm/gpiomux.h index b178d9c..00459f6 100644(Continue reading)
RSS Feed