diff options
Diffstat (limited to 'arch/arm/mach-msm/gpiomux.h')
| -rw-r--r-- | arch/arm/mach-msm/gpiomux.h | 32 | 
1 files changed, 1 insertions, 31 deletions
diff --git a/arch/arm/mach-msm/gpiomux.h b/arch/arm/mach-msm/gpiomux.h index b178d9cb742..4410d7766f9 100644 --- a/arch/arm/mach-msm/gpiomux.h +++ b/arch/arm/mach-msm/gpiomux.h @@ -19,12 +19,8 @@  #include <linux/bitops.h>  #include <linux/errno.h> - -#if defined(CONFIG_MSM_V2_TLMM) -#include "gpiomux-v2.h" -#else +#include <mach/msm_gpiomux.h>  #include "gpiomux-v1.h" -#endif  /**   * struct msm_gpiomux_config: gpiomux settings for one gpio line. @@ -71,39 +67,13 @@ enum {   */  extern struct msm_gpiomux_config msm_gpiomux_configs[GPIOMUX_NGPIOS]; -/* Increment a gpio's reference count, possibly activating the line. */ -int __must_check msm_gpiomux_get(unsigned gpio); - -/* Decrement a gpio's reference count, possibly suspending the line. */ -int msm_gpiomux_put(unsigned gpio); -  /* Install a new configuration to the gpio line.  To avoid overwriting   * a configuration, leave the VALID bit out.   */  int msm_gpiomux_write(unsigned gpio,  		      gpiomux_config_t active,  		      gpiomux_config_t suspended); - -/* Architecture-internal function for use by the framework only. - * This function can assume the following: - * - the gpio value has passed a bounds-check - * - the gpiomux spinlock has been obtained - * - * This function is not for public consumption.  External users - * should use msm_gpiomux_write. - */ -void __msm_gpiomux_write(unsigned gpio, gpiomux_config_t val);  #else -static inline int __must_check msm_gpiomux_get(unsigned gpio) -{ -	return -ENOSYS; -} - -static inline int msm_gpiomux_put(unsigned gpio) -{ -	return -ENOSYS; -} -  static inline int msm_gpiomux_write(unsigned gpio,  				    gpiomux_config_t active,  				    gpiomux_config_t suspended)  | 
