spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / arm / mach-msm / include / mach / msm_gpiomux.h
blob0c7d3936e02fcaa8dfcbab0c16cd7159d892b94e
1 /* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
13 #ifndef _LINUX_MSM_GPIOMUX_H
14 #define _LINUX_MSM_GPIOMUX_H
16 #ifdef CONFIG_MSM_GPIOMUX
18 /* Increment a gpio's reference count, possibly activating the line. */
19 int __must_check msm_gpiomux_get(unsigned gpio);
21 /* Decrement a gpio's reference count, possibly suspending the line. */
22 int msm_gpiomux_put(unsigned gpio);
24 #else
26 static inline int __must_check msm_gpiomux_get(unsigned gpio)
28 return -ENOSYS;
31 static inline int msm_gpiomux_put(unsigned gpio)
33 return -ENOSYS;
36 #endif
38 #endif /* _LINUX_MSM_GPIOMUX_H */