Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117252
b: refs/heads/master
c: 5501093
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Oct 21, 2008
1 parent 46dddd5 commit 38421d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbc97411d11b3a835c62904fddb5ce9ff457f5fa
refs/heads/master: 550109378450e7982101f299d41a80e8efc759ea
15 changes: 15 additions & 0 deletions trunk/arch/sh/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#ifndef __ASM_SH_GPIO_H
#define __ASM_SH_GPIO_H

#include <linux/errno.h>

#if defined(CONFIG_CPU_SH3)
#include <cpu/gpio.h>
#endif
Expand Down Expand Up @@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value);
int gpio_get_value(unsigned gpio);
void gpio_set_value(unsigned gpio, int value);

/* IRQ modes are unspported */
static inline int gpio_to_irq(unsigned gpio)
{
WARN_ON(1);
return -EINVAL;
}

static inline int irq_to_gpio(unsigned irq)
{
WARN_ON(1);
return -EINVAL;
}

#include <asm-generic/gpio.h>

#endif /* __ASM_SH_GPIO_H */

0 comments on commit 38421d5

Please sign in to comment.