Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261987
b: refs/heads/master
c: 030a77f
h: refs/heads/master
i:
  261985: 0d046a6
  261983: c1ca9be
v: v3
  • Loading branch information
David Brown committed Aug 1, 2011
1 parent 93e6efe commit 747abd2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10eb5f6bcbdc5e460e5500e1dbc39b2e7713ebfd
refs/heads/master: 030a77fc9b805a38a2ffaea42728557282b81275
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-msm/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#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)

Expand Down
17 changes: 1 addition & 16 deletions trunk/arch/arm/mach-msm/gpiomux.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <linux/bitops.h>
#include <linux/errno.h>
#include <mach/msm_gpiomux.h>

#if defined(CONFIG_MSM_V2_TLMM)
#include "gpiomux-v2.h"
Expand Down Expand Up @@ -71,12 +72,6 @@ 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.
*/
Expand All @@ -94,16 +89,6 @@ int msm_gpiomux_write(unsigned gpio,
*/
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)
Expand Down
38 changes: 38 additions & 0 deletions trunk/arch/arm/mach-msm/include/mach/msm_gpiomux.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 747abd2

Please sign in to comment.