mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: core: Remove definition of i2c_smbus_process_call
i2c_smbus_process_call has no users in the kernel, so this can be removed. Documentation for the same has been updated accordingly. Fixes following sparse warning. drivers/i2c/i2c-core.c:1871:5: warning: symbol 'i2c_smbus_process_call' was not declared. Should it be static? [wsa: updated the documentation] Signed-off-by: Tushar Behera <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
949db153b6
commit
c811093320
3 changed files with 4 additions and 27 deletions
|
|
@ -137,8 +137,8 @@ available for writes where the two data bytes are the other way
|
|||
around (not SMBus compliant, but very popular.)
|
||||
|
||||
|
||||
SMBus Process Call: i2c_smbus_process_call()
|
||||
=============================================
|
||||
SMBus Process Call:
|
||||
===================
|
||||
|
||||
This command selects a device register (through the Comm byte), sends
|
||||
16 bits of data to it, and reads 16 bits of data in return.
|
||||
|
|
|
|||
|
|
@ -365,8 +365,6 @@ in terms of it. Never use this function directly!
|
|||
s32 i2c_smbus_read_word_data(struct i2c_client *client, u8 command);
|
||||
s32 i2c_smbus_write_word_data(struct i2c_client *client,
|
||||
u8 command, u16 value);
|
||||
s32 i2c_smbus_process_call(struct i2c_client *client,
|
||||
u8 command, u16 value);
|
||||
s32 i2c_smbus_read_block_data(struct i2c_client *client,
|
||||
u8 command, u8 *values);
|
||||
s32 i2c_smbus_write_block_data(struct i2c_client *client,
|
||||
|
|
@ -381,6 +379,8 @@ These ones were removed from i2c-core because they had no users, but could
|
|||
be added back later if needed:
|
||||
|
||||
s32 i2c_smbus_write_quick(struct i2c_client *client, u8 value);
|
||||
s32 i2c_smbus_process_call(struct i2c_client *client,
|
||||
u8 command, u16 value);
|
||||
s32 i2c_smbus_block_process_call(struct i2c_client *client,
|
||||
u8 command, u8 length, u8 *values);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue