Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30787
b: refs/heads/master
c: 23916a8
h: refs/heads/master
i:
  30785: 09a0729
  30783: 3e3c924
v: v3
  • Loading branch information
Jim Cromie authored and Linus Torvalds committed Jun 28, 2006
1 parent 890df8c commit e0e37bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: ec312310e43acd5bb8b49314c6d472bb60d2d30c
refs/heads/master: 23916a8e3d8f41aa91474e834ac99808b197c39e
6 changes: 4 additions & 2 deletions trunk/drivers/char/nsc_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ void nsc_gpio_dump(struct nsc_gpio_ops *amp, unsigned index)
u32 config = amp->gpio_config(index, ~0, 0);

/* user requested via 'v' command, so its INFO */
dev_info(amp->dev, "io%02u: 0x%04x %s %s %s %s %s %s %s\n",
dev_info(amp->dev, "io%02u: 0x%04x %s %s %s %s %s %s %s\tio:%d/%d\n",
index, config,
(config & 1) ? "OE" : "TS", /* output-enabled/tristate */
(config & 2) ? "PP" : "OD", /* push pull / open drain */
(config & 4) ? "PUE" : "PUD", /* pull up enabled/disabled */
(config & 8) ? "LOCKED" : "", /* locked / unlocked */
(config & 16) ? "LEVEL" : "EDGE",/* level/edge input */
(config & 32) ? "HI" : "LO", /* trigger on rise/fall edge */
(config & 64) ? "DEBOUNCE" : ""); /* debounce */
(config & 64) ? "DEBOUNCE" : "", /* debounce */

amp->gpio_get(index), amp->gpio_current(index));
}

ssize_t nsc_gpio_write(struct file *file, const char __user *data,
Expand Down

0 comments on commit e0e37bb

Please sign in to comment.