PERFORCE change 107232 for review

Warner Losh imp at FreeBSD.org
Tue Oct 3 18:27:57 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107232

Change 107232 by imp at imp_lighthouse on 2006/10/04 01:27:23

	_IOR is for reading data from the kernel.
	_IOW is for writing data into the kernel.
	Config is definitely writing data into the kernel.  Switch.

Affected files ...

.. //depot/projects/arm/src/sys/sys/gpio.h#4 edit

Differences ...

==== //depot/projects/arm/src/sys/sys/gpio.h#4 (text+ko) ====

@@ -55,6 +55,6 @@
 #define GPIO_GET	_IOR('g', 2, uint32_t)	/* Read output bit state */
 #define GPIO_READ	_IOR('g', 3, uint32_t)	/* Read input bit state */
 #define GPIO_INFO	_IOR('g', 4, struct gpio_info)	/* State of gpio cfg */
-#define GPIO_CFG	_IOR('g', 5, struct gpio_cfg)	/* Configure gpio */
+#define GPIO_CFG	_IOW('g', 5, struct gpio_cfg)	/* Configure gpio */
 
 #endif /* _SYS_GPIO_H */


More information about the p4-projects mailing list