diff options
Diffstat (limited to 'Documentation/i2c/smbus-protocol')
-rw-r--r-- | Documentation/i2c/smbus-protocol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/i2c/smbus-protocol b/Documentation/i2c/smbus-protocol index 7c19d1a2bea0..49f5b680809d 100644 --- a/Documentation/i2c/smbus-protocol +++ b/Documentation/i2c/smbus-protocol | |||
@@ -88,6 +88,10 @@ byte. But this time, the data is a complete word (16 bits). | |||
88 | 88 | ||
89 | S Addr Wr [A] Comm [A] S Addr Rd [A] [DataLow] A [DataHigh] NA P | 89 | S Addr Wr [A] Comm [A] S Addr Rd [A] [DataLow] A [DataHigh] NA P |
90 | 90 | ||
91 | Note the convenience function i2c_smbus_read_word_swapped is | ||
92 | available for reads where the two data bytes are the other way | ||
93 | around (not SMBus compliant, but very popular.) | ||
94 | |||
91 | 95 | ||
92 | SMBus Write Byte: i2c_smbus_write_byte_data() | 96 | SMBus Write Byte: i2c_smbus_write_byte_data() |
93 | ============================================== | 97 | ============================================== |
@@ -108,6 +112,10 @@ specified through the Comm byte. | |||
108 | 112 | ||
109 | S Addr Wr [A] Comm [A] DataLow [A] DataHigh [A] P | 113 | S Addr Wr [A] Comm [A] DataLow [A] DataHigh [A] P |
110 | 114 | ||
115 | Note the convenience function i2c_smbus_write_word_swapped is | ||
116 | available for writes where the two data bytes are the other way | ||
117 | around (not SMBus compliant, but very popular.) | ||
118 | |||
111 | 119 | ||
112 | SMBus Process Call: i2c_smbus_process_call() | 120 | SMBus Process Call: i2c_smbus_process_call() |
113 | ============================================= | 121 | ============================================= |