Message ID | 20240706112116.24543-38-wsa+renesas@sang-engineering.com |
---|---|
State | Accepted |
Delegated to: | Andi Shyti |
Headers | show |
Series | i2c: reword first drivers according to newest specification | expand |
> > On 6. Jul 2024, at 13:22, Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > > 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: Sven Peter <sven@svenpeter.dev> > drivers/i2c/busses/i2c-pasemi-core.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-pasemi-core.c b/drivers/i2c/busses/i2c-pasemi-core.c > index bd8becbdeeb2..dac694a9d781 100644 > --- a/drivers/i2c/busses/i2c-pasemi-core.c > +++ b/drivers/i2c/busses/i2c-pasemi-core.c > @@ -336,9 +336,9 @@ static u32 pasemi_smb_func(struct i2c_adapter *adapter) > } > > static const struct i2c_algorithm smbus_algorithm = { > - .master_xfer = pasemi_i2c_xfer, > - .smbus_xfer = pasemi_smb_xfer, > - .functionality = pasemi_smb_func, > + .xfer = pasemi_i2c_xfer, > + .smbus_xfer = pasemi_smb_xfer, > + .functionality = pasemi_smb_func, > }; > > int pasemi_i2c_common_probe(struct pasemi_smbus *smbus) > -- > 2.43.0 >
Hi Wolfram, On Sat, Jul 06, 2024 at 01:20:37PM GMT, Wolfram Sang wrote: > 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> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Thanks, Andi
diff --git a/drivers/i2c/busses/i2c-pasemi-core.c b/drivers/i2c/busses/i2c-pasemi-core.c index bd8becbdeeb2..dac694a9d781 100644 --- a/drivers/i2c/busses/i2c-pasemi-core.c +++ b/drivers/i2c/busses/i2c-pasemi-core.c @@ -336,9 +336,9 @@ static u32 pasemi_smb_func(struct i2c_adapter *adapter) } static const struct i2c_algorithm smbus_algorithm = { - .master_xfer = pasemi_i2c_xfer, - .smbus_xfer = pasemi_smb_xfer, - .functionality = pasemi_smb_func, + .xfer = pasemi_i2c_xfer, + .smbus_xfer = pasemi_smb_xfer, + .functionality = pasemi_smb_func, }; int pasemi_i2c_common_probe(struct pasemi_smbus *smbus)
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> --- drivers/i2c/busses/i2c-pasemi-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)