Add another user-query command, to show more about pin-state. Maybe this should be combined with earlier patch, in one 'v' command.
[ 199.266564] pc8736x_gpio.0: io 9: driven 1, input 0 Signed-off-by: Jim Cromie <jim.cromie@xxxxxxxxx> diffstat patch.pin-config-view nsc_gpio.c | 5 +++++ 1 files changed, 5 insertions(+) --- diff -ruNp -X dontdiff -X exclude-diffs ab-15/drivers/char/nsc_gpio.c ab-16/drivers/char/nsc_gpio.c --- ab-15/drivers/char/nsc_gpio.c 2006-06-02 13:39:15.000000000 -0600 +++ ab-16/drivers/char/nsc_gpio.c 2006-06-02 13:39:45.000000000 -0600 @@ -86,6 +86,11 @@ ssize_t nsc_gpio_write(struct file *file /* View Current pin settings */ amp->gpio_dump(amp, m); break; + case 'c': + /* view pin's current values: driven and read */ + dev_info(amp->dev, "io%02d: driven %d, input %d\n", + m, amp->gpio_current(m), amp->gpio_get(m)); + break; case '\n': /* end of settings string, do nothing */ break; -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/