Update of /cvsroot/gc-linux/linux/include/linux
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv845/include/linux
Modified Files:
i2c-gpio.h
Log Message:
[PATCH] i2c-gpio: add sda_enforce_dir option
From: Albert Herranz <alb...@ya...>
Date: Sun, 1 Mar 2009 19:17:00 +0100
Subject: [PATCH] i2c-gpio: add sda_enforce_dir option
Currently, i2c-gpio assumes that it can read the SDA gpio even when
configured as an output pin, which is not true for all GPIO controllers.
This patch adds an option to i2c-gpio to enable the use of the driver
with GPIO controllers that require pins to be configured as outputs
before writing to them and as inputs before reading from them.
Such controllers need to set the sda_enforce_dir option.
Signed-off-by: Albert Herranz <alb...@ya...>
Index: i2c-gpio.h
===================================================================
RCS file: /cvsroot/gc-linux/linux/include/linux/i2c-gpio.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** i2c-gpio.h 2 Mar 2009 18:35:13 -0000 1.1
--- i2c-gpio.h 2 Mar 2009 18:36:16 -0000 1.2
***************
*** 34,37 ****
--- 34,38 ----
unsigned int scl_is_open_drain:1;
unsigned int scl_is_output_only:1;
+ unsigned int sda_enforce_dir:1;
};
|