mbox series

[0/2] i2c: smbus: small cleanups in emulation function

Message ID 20210112151230.46518-1-wsa+renesas@sang-engineering.com
Headers show
Series i2c: smbus: small cleanups in emulation function | expand

Message

Wolfram Sang Jan. 12, 2021, 3:12 p.m. UTC
To prepare for some bigger refactoring, remove those two minor nuisances
first.

Wolfram Sang (2):
  i2c: smbus: don't abuse loop variable
  i2c: smbus: improve naming in i2c_smbus_xfer_emulated()

 drivers/i2c/i2c-core-smbus.c | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

Comments

Wolfram Sang Jan. 28, 2021, 9:15 a.m. UTC | #1
On Tue, Jan 12, 2021 at 04:12:29PM +0100, Wolfram Sang wrote:
> Don't use 'i' to carry data, make a specific variable for it. After the

> move to memcpy recently, we can even remove 'i'.

> 

> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


Applied to for-next, thanks!