Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: stm32f4: reword according to newest specification

Change the wording of this driver wrt. the newest I2C v7 and SMBus 3.2
specifications and replace "master/slave" with more appropriate terms.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Alain Volmat <alain.volmat@foss.st.com>
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Wolfram Sang and committed by
Andi Shyti
830f70cf 5627f158

+4 -4
+4 -4
drivers/i2c/busses/i2c-stm32f4.c
··· 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 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 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 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