Skip to content

Commit f2005ce

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: viperboard: 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. Remove a superfluous debug output which is already available via tracing. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent e02ec4e commit f2005ce

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/i2c/busses/i2c-viperboard.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* Nano River Technologies viperboard i2c master driver
3+
* Nano River Technologies viperboard i2c controller driver
44
*
55
* (C) 2012 by Lemonage GmbH
66
* Author: Lars Poeschel <[email protected]>
@@ -273,8 +273,6 @@ static int vprbrd_i2c_xfer(struct i2c_adapter *i2c, struct i2c_msg *msgs,
273273
(struct vprbrd_i2c_addr_msg *)vb->buf;
274274
struct vprbrd_i2c_status *smsg = (struct vprbrd_i2c_status *)vb->buf;
275275

276-
dev_dbg(&i2c->dev, "master xfer %d messages:\n", num);
277-
278276
for (i = 0 ; i < num ; i++) {
279277
pmsg = &msgs[i];
280278

@@ -345,8 +343,8 @@ static u32 vprbrd_i2c_func(struct i2c_adapter *i2c)
345343

346344
/* This is the actual algorithm we define */
347345
static const struct i2c_algorithm vprbrd_algorithm = {
348-
.master_xfer = vprbrd_i2c_xfer,
349-
.functionality = vprbrd_i2c_func,
346+
.xfer = vprbrd_i2c_xfer,
347+
.functionality = vprbrd_i2c_func,
350348
};
351349

352350
static const struct i2c_adapter_quirks vprbrd_quirks = {
@@ -460,6 +458,6 @@ static void __exit vprbrd_i2c_exit(void)
460458
module_exit(vprbrd_i2c_exit);
461459

462460
MODULE_AUTHOR("Lars Poeschel <[email protected]>");
463-
MODULE_DESCRIPTION("I2C master driver for Nano River Techs Viperboard");
461+
MODULE_DESCRIPTION("I2C controller driver for Nano River Techs Viperboard");
464462
MODULE_LICENSE("GPL");
465463
MODULE_ALIAS("platform:viperboard-i2c");

0 commit comments

Comments
 (0)