@@ -513,10 +513,10 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
513
513
514
514
/**
515
515
* struct i2c_algorithm - represent I2C transfer method
516
- * @master_xfer : Issue a set of i2c transactions to the given I2C adapter
516
+ * @xfer : Issue a set of i2c transactions to the given I2C adapter
517
517
* defined by the msgs array, with num messages available to transfer via
518
518
* the adapter specified by adap.
519
- * @master_xfer_atomic : same as @master_xfer . Yet, only using atomic context
519
+ * @xfer_atomic : same as @xfer . Yet, only using atomic context
520
520
* so e.g. PMICs can be accessed very late before shutdown. Optional.
521
521
* @smbus_xfer: Issue smbus transactions to the given I2C adapter. If this
522
522
* is not present, then the bus layer will try and convert the SMBus calls
@@ -525,27 +525,33 @@ i2c_register_board_info(int busnum, struct i2c_board_info const *info,
525
525
* so e.g. PMICs can be accessed very late before shutdown. Optional.
526
526
* @functionality: Return the flags that this algorithm/adapter pair supports
527
527
* from the ``I2C_FUNC_*`` flags.
528
- * @reg_slave: Register given client to I2C slave mode of this adapter
529
- * @unreg_slave: Unregister given client from I2C slave mode of this adapter
528
+ * @reg_target: Register given client to local target mode of this adapter
529
+ * @unreg_target: Unregister given client from local target mode of this adapter
530
+ *
531
+ * @master_xfer: deprecated, use @xfer
532
+ * @master_xfer_atomic: deprecated, use @xfer_atomic
533
+ * @reg_slave: deprecated, use @reg_target
534
+ * @unreg_slave: deprecated, use @unreg_target
535
+ *
530
536
*
531
537
* The following structs are for those who like to implement new bus drivers:
532
538
* i2c_algorithm is the interface to a class of hardware solutions which can
533
539
* be addressed using the same bus algorithms - i.e. bit-banging or the PCF8584
534
540
* to name two of the most common.
535
541
*
536
- * The return codes from the ``master_xfer {_atomic}`` fields should indicate the
542
+ * The return codes from the ``xfer {_atomic}`` fields should indicate the
537
543
* type of error code that occurred during the transfer, as documented in the
538
544
* Kernel Documentation file Documentation/i2c/fault-codes.rst. Otherwise, the
539
545
* number of messages executed should be returned.
540
546
*/
541
547
struct i2c_algorithm {
542
548
/*
543
- * If an adapter algorithm can't do I2C-level access, set master_xfer
549
+ * If an adapter algorithm can't do I2C-level access, set xfer
544
550
* to NULL. If an adapter algorithm can do SMBus access, set
545
551
* smbus_xfer. If set to NULL, the SMBus protocol is simulated
546
552
* using common I2C messages.
547
553
*
548
- * master_xfer should return the number of messages successfully
554
+ * xfer should return the number of messages successfully
549
555
* processed, or a negative value on error
550
556
*/
551
557
union {
0 commit comments