1

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>
This commit is contained in:
Wolfram Sang 2024-07-06 13:20:47 +02:00 committed by Andi Shyti
parent 5627f15847
commit 830f70cf18

View File

@ -95,7 +95,7 @@
/** /**
* struct stm32f4_i2c_msg - client specific data * struct stm32f4_i2c_msg - client specific data
* @addr: 8-bit slave addr, including r/w bit * @addr: 8-bit target addr, including r/w bit
* @count: number of bytes to be transferred * @count: number of bytes to be transferred
* @buf: data buffer * @buf: data buffer
* @result: result of the transfer * @result: result of the transfer
@ -480,7 +480,7 @@ static void stm32f4_i2c_handle_rx_done(struct stm32f4_i2c_dev *i2c_dev)
/** /**
* stm32f4_i2c_handle_rx_addr() - Handle address matched interrupt in case of * stm32f4_i2c_handle_rx_addr() - Handle address matched interrupt in case of
* master receiver * controller receiver
* @i2c_dev: Controller's private data * @i2c_dev: Controller's private data
*/ */
static void stm32f4_i2c_handle_rx_addr(struct stm32f4_i2c_dev *i2c_dev) 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)
/* /*
* Acknowledge failure: * Acknowledge failure:
* In master transmitter mode a Stop must be generated by software * In controller transmitter mode a Stop must be generated by software
*/ */
if (status & STM32F4_I2C_SR1_AF) { if (status & STM32F4_I2C_SR1_AF) {
if (!(msg->addr & I2C_M_RD)) { if (!(msg->addr & I2C_M_RD)) {
@ -749,7 +749,7 @@ static u32 stm32f4_i2c_func(struct i2c_adapter *adap)
} }
static const struct i2c_algorithm stm32f4_i2c_algo = { static const struct i2c_algorithm stm32f4_i2c_algo = {
.master_xfer = stm32f4_i2c_xfer, .xfer = stm32f4_i2c_xfer,
.functionality = stm32f4_i2c_func, .functionality = stm32f4_i2c_func,
}; };