]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/i2c/writing-clients
i2c: Constify i2c_get_clientdata's parameter
[linux-2.6-omap-h63xx.git] / Documentation / i2c / writing-clients
index 6b61b3a2e90bee2b7cbed065160bd029db89ba08..3b01350c149c1f8df798c45bb0b511fa8eb8e765 100644 (file)
@@ -83,7 +83,7 @@ be very useful.
        void i2c_set_clientdata(struct i2c_client *client, void *data);
 
        /* retrieve the value */
-       void *i2c_get_clientdata(struct i2c_client *client);
+       void *i2c_get_clientdata(const struct i2c_client *client);
 
 An example structure is below.
 
@@ -606,6 +606,8 @@ SMBus communication
   extern s32 i2c_smbus_read_word_data(struct i2c_client * client, u8 command);
   extern s32 i2c_smbus_write_word_data(struct i2c_client * client,
                                        u8 command, u16 value);
+  extern s32 i2c_smbus_process_call(struct i2c_client *client,
+                                    u8 command, u16 value);
   extern s32 i2c_smbus_read_block_data(struct i2c_client * client,
                                        u8 command, u8 *values);
   extern s32 i2c_smbus_write_block_data(struct i2c_client * client,
@@ -621,8 +623,6 @@ These ones were removed from i2c-core because they had no users, but could
 be added back later if needed:
 
   extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value);
-  extern s32 i2c_smbus_process_call(struct i2c_client * client,
-                                    u8 command, u16 value);
   extern s32 i2c_smbus_block_process_call(struct i2c_client *client,
                                           u8 command, u8 length,
                                           u8 *values)