Commit d83763e4 authored by Wolfram Sang's avatar Wolfram Sang

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
parent 6318f219
...@@ -30,7 +30,6 @@ extern const struct device_type i2c_client_type; ...@@ -30,7 +30,6 @@ extern const struct device_type i2c_client_type;
/* --- General options ------------------------------------------------ */ /* --- General options ------------------------------------------------ */
struct i2c_msg; struct i2c_msg;
struct i2c_algorithm;
struct i2c_adapter; struct i2c_adapter;
struct i2c_client; struct i2c_client;
struct i2c_driver; struct i2c_driver;
...@@ -533,8 +532,6 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info, ...@@ -533,8 +532,6 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
* @reg_slave: deprecated, use @reg_target * @reg_slave: deprecated, use @reg_target
* @unreg_slave: deprecated, use @unreg_target * @unreg_slave: deprecated, use @unreg_target
* *
*
* The following structs are for those who like to implement new bus drivers:
* i2c_algorithm is the interface to a class of hardware solutions which can * i2c_algorithm is the interface to a class of hardware solutions which can
* be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584 * be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584
* to name two of the most common. * to name two of the most common.
...@@ -550,9 +547,6 @@ struct i2c_algorithm { ...@@ -550,9 +547,6 @@ struct i2c_algorithm {
* to NULL. If an adapter algorithm can do SMBus access, set * to NULL. If an adapter algorithm can do SMBus access, set
* smbus_xfer. If set to NULL, the SMBus protocol is simulated * smbus_xfer. If set to NULL, the SMBus protocol is simulated
* using common I2C messages. * using common I2C messages.
*
* xfer should return the number of messages successfully
* processed, or a negative value on error
*/ */
union { union {
int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs, int (*xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment