|
2 | 2 | /*
|
3 | 3 | * Copyright (C) 2013 STMicroelectronics
|
4 | 4 | *
|
5 |
| - * I2C master mode controller driver, used in STMicroelectronics devices. |
| 5 | + * I2C controller driver, used in STMicroelectronics devices. |
6 | 6 | *
|
7 | 7 | * Author: Maxime Coquelin <[email protected]>
|
8 | 8 | */
|
@@ -150,7 +150,7 @@ struct st_i2c_timings {
|
150 | 150 |
|
151 | 151 | /**
|
152 | 152 | * struct st_i2c_client - client specific data
|
153 |
| - * @addr: 8-bit slave addr, including r/w bit |
| 153 | + * @addr: 8-bit target addr, including r/w bit |
154 | 154 | * @count: number of bytes to be transfered
|
155 | 155 | * @xfered: number of bytes already transferred
|
156 | 156 | * @buf: data buffer
|
@@ -667,7 +667,7 @@ static int st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg,
|
667 | 667 | i2c |= SSC_I2C_ACKG;
|
668 | 668 | st_i2c_set_bits(i2c_dev->base + SSC_I2C, i2c);
|
669 | 669 |
|
670 |
| - /* Write slave address */ |
| 670 | + /* Write target address */ |
671 | 671 | st_i2c_write_tx_fifo(i2c_dev, c->addr);
|
672 | 672 |
|
673 | 673 | /* Pre-fill Tx fifo with data in case of write */
|
@@ -766,7 +766,7 @@ static u32 st_i2c_func(struct i2c_adapter *adap)
|
766 | 766 | }
|
767 | 767 |
|
768 | 768 | static const struct i2c_algorithm st_i2c_algo = {
|
769 |
| - .master_xfer = st_i2c_xfer, |
| 769 | + .xfer = st_i2c_xfer, |
770 | 770 | .functionality = st_i2c_func,
|
771 | 771 | };
|
772 | 772 |
|
|
0 commit comments