From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- .../arch/arm/mach-msm/include/mach/msm_gpiomux.h | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/mach-msm/include/mach/msm_gpiomux.h (limited to 'ANDROID_3.4.5/arch/arm/mach-msm/include/mach/msm_gpiomux.h') diff --git a/ANDROID_3.4.5/arch/arm/mach-msm/include/mach/msm_gpiomux.h b/ANDROID_3.4.5/arch/arm/mach-msm/include/mach/msm_gpiomux.h new file mode 100644 index 00000000..0c7d3936 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/mach-msm/include/mach/msm_gpiomux.h @@ -0,0 +1,38 @@ +/* Copyright (c) 2011, Code Aurora Forum. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _LINUX_MSM_GPIOMUX_H +#define _LINUX_MSM_GPIOMUX_H + +#ifdef CONFIG_MSM_GPIOMUX + +/* 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); + +#else + +static inline int __must_check msm_gpiomux_get(unsigned gpio) +{ + return -ENOSYS; +} + +static inline int msm_gpiomux_put(unsigned gpio) +{ + return -ENOSYS; +} + +#endif + +#endif /* _LINUX_MSM_GPIOMUX_H */ -- cgit