aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/i2c/smbus-protocol4
-rw-r--r--Documentation/i2c/writing-clients14
-rw-r--r--drivers/i2c/i2c-core.c7
-rw-r--r--include/linux/i2c.h1
4 files changed, 9 insertions, 17 deletions
diff --git a/Documentation/i2c/smbus-protocol b/Documentation/i2c/smbus-protocol
index 03f08fb491cc..24bfb65da17d 100644
--- a/Documentation/i2c/smbus-protocol
+++ b/Documentation/i2c/smbus-protocol
@@ -42,8 +42,8 @@ Count (8 bits): A data byte containing the length of a block operation.
42[..]: Data sent by I2C device, as opposed to data sent by the host adapter. 42[..]: Data sent by I2C device, as opposed to data sent by the host adapter.
43 43
44 44
45SMBus Quick Command: i2c_smbus_write_quick() 45SMBus Quick Command
46============================================= 46===================
47 47
48This sends a single bit to the device, at the place of the Rd/Wr bit. 48This sends a single bit to the device, at the place of the Rd/Wr bit.
49 49
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients
index ba5d1971f35f..63722d3c9cdf 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -569,7 +569,6 @@ SMBus communication
569 in terms of it. Never use this function directly! 569 in terms of it. Never use this function directly!
570 570
571 571
572 extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value);
573 extern s32 i2c_smbus_read_byte(struct i2c_client * client); 572 extern s32 i2c_smbus_read_byte(struct i2c_client * client);
574 extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value); 573 extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value);
575 extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command); 574 extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command);
@@ -578,20 +577,21 @@ SMBus communication
578 extern s32 i2c_smbus_read_word_data(struct i2c_client * client, u8 command); 577 extern s32 i2c_smbus_read_word_data(struct i2c_client * client, u8 command);
579 extern s32 i2c_smbus_write_word_data(struct i2c_client * client, 578 extern s32 i2c_smbus_write_word_data(struct i2c_client * client,
580 u8 command, u16 value); 579 u8 command, u16 value);
580 extern s32 i2c_smbus_read_block_data(struct i2c_client * client,
581 u8 command, u8 *values);
581 extern s32 i2c_smbus_write_block_data(struct i2c_client * client, 582 extern s32 i2c_smbus_write_block_data(struct i2c_client * client,
582 u8 command, u8 length, 583 u8 command, u8 length,
583 u8 *values); 584 u8 *values);
584 extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client, 585 extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client,
585 u8 command, u8 length, u8 *values); 586 u8 command, u8 length, u8 *values);
586
587These ones were removed in Linux 2.6.10 because they had no users, but could
588be added back later if needed:
589
590 extern s32 i2c_smbus_read_block_data(struct i2c_client * client,
591 u8 command, u8 *values);
592 extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, 587 extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client,
593 u8 command, u8 length, 588 u8 command, u8 length,
594 u8 *values); 589 u8 *values);
590
591These ones were removed from i2c-core because they had no users, but could
592be added back later if needed:
593
594 extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value);
595 extern s32 i2c_smbus_process_call(struct i2c_client * client, 595 extern s32 i2c_smbus_process_call(struct i2c_client * client,
596 u8 command, u16 value); 596 u8 command, u16 value);
597 extern s32 i2c_smbus_block_process_call(struct i2c_client *client, 597 extern s32 i2c_smbus_block_process_call(struct i2c_client *client,
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 937f1dcbf3d7..3695a4a1ab77 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1303,13 +1303,6 @@ static int i2c_smbus_check_pec(u8 cpec, struct i2c_msg *msg)
1303 return 0; 1303 return 0;
1304} 1304}
1305 1305
1306s32 i2c_smbus_write_quick(struct i2c_client *client, u8 value)
1307{
1308 return i2c_smbus_xfer(client->adapter,client->addr,client->flags,
1309 value,0,I2C_SMBUS_QUICK,NULL);
1310}
1311EXPORT_SYMBOL(i2c_smbus_write_quick);
1312
1313s32 i2c_smbus_read_byte(struct i2c_client *client) 1306s32 i2c_smbus_read_byte(struct i2c_client *client)
1314{ 1307{
1315 union i2c_smbus_data data; 1308 union i2c_smbus_data data;
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 8dc730132192..b3695f353f79 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -71,7 +71,6 @@ extern s32 i2c_smbus_xfer (struct i2c_adapter * adapter, u16 addr,
71/* Now follow the 'nice' access routines. These also document the calling 71/* Now follow the 'nice' access routines. These also document the calling
72 conventions of smbus_access. */ 72 conventions of smbus_access. */
73 73
74extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value);
75extern s32 i2c_smbus_read_byte(struct i2c_client * client); 74extern s32 i2c_smbus_read_byte(struct i2c_client * client);
76extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value); 75extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value);
77extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command); 76extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command);