]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] gpio: drop vtable members .gpio_set_high .gpio_set_low gpio_set is enough
authorJim Cromie <jim.cromie@gmail.com>
Fri, 14 Jul 2006 07:24:25 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:54 +0000 (21:53 -0700)
drops gpio_set_high, gpio_set_low from the nsc_gpio_ops vtable.  While we
can't drop them from scx200_gpio (or can we?), we dont need them for new users
of the exported vtable; gpio_set(1), gpio_set(0) work fine.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/pc8736x_gpio.c
drivers/char/scx200_gpio.c
include/linux/nsc_gpio.h

index 11bd78c806287064cb052ff0a957012277ced456..0b235a90beef7e06aa18d991edb04c185d0be951 100644 (file)
@@ -218,8 +218,6 @@ static struct nsc_gpio_ops pc8736x_access = {
        .gpio_dump      = nsc_gpio_dump,
        .gpio_get       = pc8736x_gpio_get,
        .gpio_set       = pc8736x_gpio_set,
-       .gpio_set_high  = pc8736x_gpio_set_high,
-       .gpio_set_low   = pc8736x_gpio_set_low,
        .gpio_change    = pc8736x_gpio_change,
        .gpio_current   = pc8736x_gpio_current
 };
index dd1f997944e6520eac1e21aa12594be65f836db9..f65372b5a656f662e295808c65425d37b3efb254 100644 (file)
@@ -41,8 +41,6 @@ struct nsc_gpio_ops scx200_access = {
        .gpio_dump      = nsc_gpio_dump,
        .gpio_get       = scx200_gpio_get,
        .gpio_set       = scx200_gpio_set,
-       .gpio_set_high  = scx200_gpio_set_high,
-       .gpio_set_low   = scx200_gpio_set_low,
        .gpio_change    = scx200_gpio_change,
        .gpio_current   = scx200_gpio_current
 };
index 135742cfada54c27271b8c7f792446d3c0cb6aa4..7da0cf3702ee05692f1d65fea8a8ad7344106b97 100644 (file)
@@ -25,8 +25,6 @@ struct nsc_gpio_ops {
        void    (*gpio_dump)    (struct nsc_gpio_ops *amp, unsigned iminor);
        int     (*gpio_get)     (unsigned iminor);
        void    (*gpio_set)     (unsigned iminor, int state);
-       void    (*gpio_set_high)(unsigned iminor);
-       void    (*gpio_set_low) (unsigned iminor);
        void    (*gpio_change)  (unsigned iminor);
        int     (*gpio_current) (unsigned iminor);
        struct device*  dev;    /* for dev_dbg() support, set in init  */