File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 95
95
96
96
/**
97
97
* struct stm32f4_i2c_msg - client specific data
98
- * @addr: 8-bit slave addr, including r/w bit
98
+ * @addr: 8-bit target addr, including r/w bit
99
99
* @count: number of bytes to be transferred
100
100
* @buf: data buffer
101
101
* @result: result of the transfer
@@ -480,7 +480,7 @@ static void stm32f4_i2c_handle_rx_done(struct stm32f4_i2c_dev *i2c_dev)
480
480
481
481
/**
482
482
* stm32f4_i2c_handle_rx_addr() - Handle address matched interrupt in case of
483
- * master receiver
483
+ * controller receiver
484
484
* @i2c_dev: Controller's private data
485
485
*/
486
486
static void stm32f4_i2c_handle_rx_addr (struct stm32f4_i2c_dev * i2c_dev )
@@ -643,7 +643,7 @@ static irqreturn_t stm32f4_i2c_isr_error(int irq, void *data)
643
643
644
644
/*
645
645
* Acknowledge failure:
646
- * In master transmitter mode a Stop must be generated by software
646
+ * In controller transmitter mode a Stop must be generated by software
647
647
*/
648
648
if (status & STM32F4_I2C_SR1_AF ) {
649
649
if (!(msg -> addr & I2C_M_RD )) {
@@ -749,7 +749,7 @@ static u32 stm32f4_i2c_func(struct i2c_adapter *adap)
749
749
}
750
750
751
751
static const struct i2c_algorithm stm32f4_i2c_algo = {
752
- .master_xfer = stm32f4_i2c_xfer ,
752
+ .xfer = stm32f4_i2c_xfer ,
753
753
.functionality = stm32f4_i2c_func ,
754
754
};
755
755
You can’t perform that action at this time.
0 commit comments