Skip to content

Commit d08cac0

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: i801: 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> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 7c9e670 commit d08cac0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/i2c/busses/i2c-i801.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* Block buffer yes
8989
* Block process call transaction yes
9090
* I2C block read transaction yes (doesn't use the block buffer)
91-
* Slave mode no
91+
* Target mode no
9292
* SMBus Host Notify yes
9393
* Interrupt processing yes
9494
*
@@ -1277,10 +1277,10 @@ static void register_dell_lis3lv02d_i2c_device(struct i801_priv *priv)
12771277
i2c_new_client_device(&priv->adapter, &info);
12781278
}
12791279

1280-
/* Register optional slaves */
1281-
static void i801_probe_optional_slaves(struct i801_priv *priv)
1280+
/* Register optional targets */
1281+
static void i801_probe_optional_targets(struct i801_priv *priv)
12821282
{
1283-
/* Only register slaves on main SMBus channel */
1283+
/* Only register targets on main SMBus channel */
12841284
if (priv->features & FEATURE_IDF)
12851285
return;
12861286

@@ -1307,7 +1307,7 @@ static void i801_probe_optional_slaves(struct i801_priv *priv)
13071307
}
13081308
#else
13091309
static void __init input_apanel_init(void) {}
1310-
static void i801_probe_optional_slaves(struct i801_priv *priv) {}
1310+
static void i801_probe_optional_targets(struct i801_priv *priv) {}
13111311
#endif /* CONFIG_X86 && CONFIG_DMI */
13121312

13131313
#ifdef CONFIG_I2C_I801_MUX
@@ -1777,7 +1777,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
17771777

17781778
/* We ignore errors - multiplexing is optional */
17791779
i801_add_mux(priv);
1780-
i801_probe_optional_slaves(priv);
1780+
i801_probe_optional_targets(priv);
17811781

17821782
pci_set_drvdata(dev, priv);
17831783

0 commit comments

Comments
 (0)