From: Albert H. <he...@us...> - 2009-12-09 18:18:17
|
Update of /cvsroot/gc-linux/linux/drivers/gpio In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv17071/drivers/gpio Modified Files: gpiolib.c Log Message: Rewind to v2.6.31. Index: gpiolib.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/gpio/gpiolib.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** gpiolib.c 25 Oct 2009 18:59:28 -0000 1.7 --- gpiolib.c 9 Dec 2009 18:18:06 -0000 1.8 *************** *** 1006,1027 **** EXPORT_SYMBOL_GPL(gpio_direction_output); - /** - * gpio_direction_is_output - tell if a gpio is configured as an output - * @gpio: gpio in question - * - * Returns a negative errno if the given gpio is not valid. - * Returns a positive non-zero if the gpio is configured as an output. - * Returns zero otherwise. - */ - int gpio_direction_is_output(unsigned gpio) - { - struct gpio_desc *desc = &gpio_desc[gpio]; - - if (!gpio_is_valid(gpio)) - return -EINVAL; - - return test_bit(FLAG_IS_OUT, &desc->flags); - } - EXPORT_SYMBOL_GPL(gpio_direction_is_output); /* I/O calls are only valid after configuration completed; the relevant --- 1006,1009 ---- |