git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branches 'core/softlockup', 'core/softirq', 'core/resources', 'core/printk...
[pandora-kernel.git]
/
include
/
linux
/
i2c-algo-bit.h
diff --git
a/include/linux/i2c-algo-bit.h
b/include/linux/i2c-algo-bit.h
index
c8f8df2
..
111334f
100644
(file)
--- a/
include/linux/i2c-algo-bit.h
+++ b/
include/linux/i2c-algo-bit.h
@@
-18,7
+18,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* ------------------------------------------------------------------------- */
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* ------------------------------------------------------------------------- */
-/* With some changes from Ky
östi Mä
lkki <kmalkki@cc.hut.fi> and even
+/* With some changes from Ky
östi Mä
lkki <kmalkki@cc.hut.fi> and even
Frodo Looijaard <frodol@dds.nl> */
#ifndef _LINUX_I2C_ALGO_BIT_H
Frodo Looijaard <frodol@dds.nl> */
#ifndef _LINUX_I2C_ALGO_BIT_H
@@
-26,9
+26,9
@@
/* --- Defines for bit-adapters --------------------------------------- */
/*
/* --- Defines for bit-adapters --------------------------------------- */
/*
- * This struct contains the hw-dependent functions of bit-style adapters to
+ * This struct contains the hw-dependent functions of bit-style adapters to
* manipulate the line states, and to init any hw-specific features. This is
* manipulate the line states, and to init any hw-specific features. This is
- * only used if you have more than one hw-type of adapter running.
+ * only used if you have more than one hw-type of adapter running.
*/
struct i2c_algo_bit_data {
void *data; /* private data for lowlevel routines */
*/
struct i2c_algo_bit_data {
void *data; /* private data for lowlevel routines */
@@
-38,12
+38,14
@@
struct i2c_algo_bit_data {
int (*getscl) (void *data);
/* local settings */
int (*getscl) (void *data);
/* local settings */
- int udelay; /* half-clock-cycle time in microsecs */
- /* i.e. clock is (500 / udelay) KHz */
+ int udelay; /* half clock cycle time in us,
+ minimum 2 us for fast-mode I2C,
+ minimum 5 us for standard-mode I2C and SMBus,
+ maximum 50 us for SMBus */
int timeout; /* in jiffies */
};
int i2c_bit_add_bus(struct i2c_adapter *);
int timeout; /* in jiffies */
};
int i2c_bit_add_bus(struct i2c_adapter *);
-int i2c_bit_
del
_bus(struct i2c_adapter *);
+int i2c_bit_
add_numbered
_bus(struct i2c_adapter *);
#endif /* _LINUX_I2C_ALGO_BIT_H */
#endif /* _LINUX_I2C_ALGO_BIT_H */