From: Albert H. <he...@us...> - 2009-12-09 18:40:18
|
Update of /cvsroot/gc-linux/linux/include/asm-generic In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21229/include/asm-generic Modified Files: gpio.h Log Message: Forward to v2.6.32. Index: gpio.h =================================================================== RCS file: /cvsroot/gc-linux/linux/include/asm-generic/gpio.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** gpio.h 9 Dec 2009 18:18:07 -0000 1.8 --- gpio.h 9 Dec 2009 18:40:10 -0000 1.9 *************** *** 2,5 **** --- 2,6 ---- #define _ASM_GENERIC_GPIO_H + #include <linux/kernel.h> #include <linux/types.h> #include <linux/errno.h> *************** *** 142,145 **** --- 143,148 ---- */ extern int gpio_export(unsigned gpio, bool direction_may_change); + extern int gpio_export_link(struct device *dev, const char *name, + unsigned gpio); extern void gpio_unexport(unsigned gpio); *************** *** 186,189 **** --- 189,198 ---- } + static inline int gpio_export_link(struct device *dev, const char *name, + unsigned gpio) + { + return -ENOSYS; + } + static inline void gpio_unexport(unsigned gpio) { |