Skip to contentSkip to conversation

i2c: mux: pca954x: Fix trivia typo: busses -> buses

PATCH In review Andy Shevchenko 3 participants 3 messages Aug 20, 2020 – Aug 25, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: mux: pca954x: Fix trivia typo: busses -> buses

Fix trivia typo: busses -> buses. While at it, rearrange LOCs for better readability.

---
 drivers/i2c/muxes/i2c-mux-pca954x.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/i2c/muxes/i2c-mux-pca954x.c +3 -3
index 4ad665757dd8..dbf98d0aa656 100644
@@ -510,9 +510,9 @@ static int pca954x_probe(struct i2c_client *client,
 	 */
 	device_create_file(dev, &dev_attr_idle_state);
 
-	dev_info(dev, "registered %d multiplexed busses for I2C %s %s\n",
-		 num, data->chip->muxtype == pca954x_ismux
-				? "mux" : "switch", client->name);
+	dev_info(dev, "registered %d multiplexed buses for I2C %s %s\n",
+		 num, data->chip->muxtype == pca954x_ismux ? "mux" : "switch",
+		 client->name);
 
 	return 0;
 
Signature · 1 line
2.28.0
#1 lore raw
Quoted 1 line · Andy Shevchenko

Fix trivia typo: busses -> buses. While at it, rearrange LOCs

I don't think it's a typo at all, it's just an old spelling. Not worth it if you ask me, but then again, I'm not a native speaker. Anyway, unless I get more input my call is to change this whenever drivers/i2c/busses/ is renamed...

Cheers,
Peter

Quoted 25 lines

for better readability.

---
 drivers/i2c/muxes/i2c-mux-pca954x.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/i2c/muxes/i2c-mux-pca954x.c +3 -3
index 4ad665757dd8..dbf98d0aa656 100644
@@ -510,9 +510,9 @@ static int pca954x_probe(struct i2c_client *client,
 	 */
 	device_create_file(dev, &dev_attr_idle_state);
 
-	dev_info(dev, "registered %d multiplexed busses for I2C %s %s\n",
-		 num, data->chip->muxtype == pca954x_ismux
-				? "mux" : "switch", client->name);
+	dev_info(dev, "registered %d multiplexed buses for I2C %s %s\n",
+		 num, data->chip->muxtype == pca954x_ismux ? "mux" : "switch",
+		 client->name);
 
 	return 0;
 
#2 lore raw
Quoted 8 lines · Peter Rosin
Quoted 1 line · Andy Shevchenko

Fix trivia typo: busses -> buses. While at it, rearrange LOCs

I don't think it's a typo at all, it's just an old spelling. Not worth it if you ask me, but then again, I'm not a native speaker. Anyway, unless I get more input my call is to change this whenever drivers/i2c/busses/ is renamed...

I follow Peter's reasoning, especially with the directory name. From the Kernel top dir:

$ git grep busses | wc -l
653
$ git grep buses | wc -l
867

Not a typo in my book.