Remove the .priv_xfers() callback from the framework after all master controller drivers have switched to use the new .i3c_xfers() callback.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -417,12 +417,8 @@ struct i3c_bus { · 416 unmodified lines | |||
| 417 | * all CCC commands are supported. | 417 | * all CCC commands are supported. |
| 418 | * @send_ccc_cmd: send a CCC command | 418 | * @send_ccc_cmd: send a CCC command |
| 419 | * This method is mandatory. | 419 | * This method is mandatory. |
| 420 | * @priv_xfers: do one or several private I3C SDR transfers | 420 | * @i3c_xfers: do one or several I3C SDR or HDR transfers. |
| 421 | * This method is mandatory when i3c_xfers is not implemented. It | 421 | * This method is mandatory. |
| 422 | * is deprecated. | ||
| 423 | * @i3c_xfers: do one or several I3C SDR or HDR transfers | ||
| 424 | * This method is mandatory when priv_xfers is not implemented but | ||
| 425 | * should be implemented instead of priv_xfers. | ||
| 426 | * @attach_i2c_dev: called every time an I2C device is attached to the bus. | 422 | * @attach_i2c_dev: called every time an I2C device is attached to the bus. |
| 427 | * This is a good place to attach master controller specific | 423 | * This is a good place to attach master controller specific |
| 428 | * data to I2C devices. | 424 | * data to I2C devices. |
| @@ -478,10 +474,6 @@ struct i3c_master_controller_ops { · 49 unmodified lines | |||
| 478 | const struct i3c_ccc_cmd *cmd); | 474 | const struct i3c_ccc_cmd *cmd); |
| 479 | int (*send_ccc_cmd)(struct i3c_master_controller *master, | 475 | int (*send_ccc_cmd)(struct i3c_master_controller *master, |
| 480 | struct i3c_ccc_cmd *cmd); | 476 | struct i3c_ccc_cmd *cmd); |
| 481 | /* Deprecated, please use i3c_xfers() */ | ||
| 482 | int (*priv_xfers)(struct i3c_dev_desc *dev, | ||
| 483 | struct i3c_priv_xfer *xfers, | ||
| 484 | int nxfers); | ||
| 485 | int (*i3c_xfers)(struct i3c_dev_desc *dev, | 477 | int (*i3c_xfers)(struct i3c_dev_desc *dev, |
| 486 | struct i3c_xfer *xfers, | 478 | struct i3c_xfer *xfers, |
| 487 | int nxfers, enum i3c_xfer_mode mode); | 479 | int nxfers, enum i3c_xfer_mode mode); |