Skip to content

Commit d83763e

Browse files
author
Wolfram Sang
committed
i2c: header: remove unneeded stuff regarding i2c_algorithm
The forward declaration is not needed anymore. The sentence about "following structs" became obsolete when struct i2c_algorithm became a kdoc. The paragraph about return values can go because we have this information in kdoc already. Signed-off-by: Wolfram Sang <[email protected]>
1 parent 6318f21 commit d83763e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/linux/i2c.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ extern const struct device_type i2c_client_type;
3030
/* --- General options ------------------------------------------------ */
3131

3232
struct i2c_msg;
33-
struct i2c_algorithm;
3433
struct i2c_adapter;
3534
struct i2c_client;
3635
struct i2c_driver;
@@ -533,8 +532,6 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
533532
* @reg_slave: deprecated, use @reg_target
534533
* @unreg_slave: deprecated, use @unreg_target
535534
*
536-
*
537-
* The following structs are for those who like to implement new bus drivers:
538535
* i2c_algorithm is the interface to a class of hardware solutions which can
539536
* be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584
540537
* to name two of the most common.
@@ -550,9 +547,6 @@ struct i2c_algorithm {
550547
* to NULL. If an adapter algorithm can do SMBus access, set
551548
* smbus_xfer. If set to NULL, the SMBus protocol is simulated
552549
* using common I2C messages.
553-
*
554-
* xfer should return the number of messages successfully
555-
* processed, or a negative value on error
556550
*/
557551
union {
558552
int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,

0 commit comments

Comments
 (0)