Skip to contentSkip to conversation

staging: kpc2000: code style: fix alignment issues

PATCH Superseded Nikolay Kyx 2 participants 9 messages Feb 18, 2021 – Feb 21, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: kpc2000: code style: fix alignment issues

kpc2000_i2c.c:
fix WARNING: line length of 124 exceeds 100 columns fix CHECK: Alignment should match open parenthesis

kpc2000_spi.c:
fix CHECK: Alignment should match open parenthesis

---
 drivers/staging/kpc2000/kpc2000_i2c.c | 6 ++++--
 drivers/staging/kpc2000/kpc2000_spi.c | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/staging/kpc2000/kpc2000_i2c.c +4 -2
index 25bb5c97dd21..14f7940fa4fb 100644
@@ -200,7 +200,9 @@ static int i801_check_post(struct kpc_i2c *priv, int status, int timeout)
 		outb_p(status & STATUS_FLAGS, SMBHSTSTS(priv));
 		status = inb_p(SMBHSTSTS(priv)) & STATUS_FLAGS;
 		if (status)
-			dev_warn(&priv->adapter.dev, "Failed clearing status flags at end of transaction (%02x)\n", status);
+			dev_warn(&priv->adapter.dev,
+				 "Failed clearing status flags at end of transaction (%02x)\n",
+				 status);
 	}
 
 	return result;
@@ -269,7 +271,7 @@ static int i801_block_transaction_by_block(struct kpc_i2c *priv,
 	}
 
 	status = i801_transaction(priv,
-			I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
+				  I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
 	if (status)
 		return status;
 
drivers/staging/kpc2000/kpc2000_spi.c +1 -1
index 44017d523da5..16ca18b8aa15 100644
@@ -465,7 +465,7 @@ kp_spi_probe(struct platform_device *pldev)
 	}
 
 	kpspi->base = devm_ioremap(&pldev->dev, r->start,
-					   resource_size(r));
+				   resource_size(r));
 
 	status = spi_register_master(master);
 	if (status < 0) {
Signature · 1 line
2.30.1
maintainer
#1 lore raw
Quoted 6 lines · Nikolay Kyx

kpc2000_i2c.c:
fix WARNING: line length of 124 exceeds 100 columns fix CHECK: Alignment should match open parenthesis

kpc2000_spi.c:
fix CHECK: Alignment should match open parenthesis

This changelog is a bit odd.

Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.

thanks,

greg k-h

#2 lore raw

PATCH v2 1/1 staging: kpc2000: code style: fix alignment issues

This patch fixes the following checkpatch.pl warnings:

WARNING: line length of 124 exceeds 100 columns
CHECK: Alignment should match open parenthesis

in files kpc2000_i2c.c kpc2000_spi.c

Additionally some style warnings remain valid here and could be fixed by another patch.

---

v2: Edited changelog, as suggested by Greg KH <[email protected]>

 drivers/staging/kpc2000/kpc2000_i2c.c | 6 ++++--
 drivers/staging/kpc2000/kpc2000_spi.c | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/staging/kpc2000/kpc2000_i2c.c +4 -2
index 25bb5c97dd21..14f7940fa4fb 100644
@@ -200,7 +200,9 @@ static int i801_check_post(struct kpc_i2c *priv, int status, int timeout)
 		outb_p(status & STATUS_FLAGS, SMBHSTSTS(priv));
 		status = inb_p(SMBHSTSTS(priv)) & STATUS_FLAGS;
 		if (status)
-			dev_warn(&priv->adapter.dev, "Failed clearing status flags at end of transaction (%02x)\n", status);
+			dev_warn(&priv->adapter.dev,
+				 "Failed clearing status flags at end of transaction (%02x)\n",
+				 status);
 	}
 
 	return result;
@@ -269,7 +271,7 @@ static int i801_block_transaction_by_block(struct kpc_i2c *priv,
 	}
 
 	status = i801_transaction(priv,
-			I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
+				  I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
 	if (status)
 		return status;
 
drivers/staging/kpc2000/kpc2000_spi.c +1 -1
index 44017d523da5..16ca18b8aa15 100644
@@ -465,7 +465,7 @@ kp_spi_probe(struct platform_device *pldev)
 	}
 
 	kpspi->base = devm_ioremap(&pldev->dev, r->start,
-					   resource_size(r));
+				   resource_size(r));
 
 	status = spi_register_master(master);
 	if (status < 0) {
Signature · 1 line
2.30.1
maintainer
#3 lore raw
Quoted 4 lines · Nikolay Kyx

This patch fixes the following checkpatch.pl warnings:

WARNING: line length of 124 exceeds 100 columns
CHECK: Alignment should match open parenthesis

That's two different things, please make this two different patches.

thanks,

greg k-h

#4 lore raw

PATCH v3 1/2 staging: kpc2000: code style: fix alignment issues

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in files kpc2000_i2c.c kpc2000_spi.c

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>
v3: Splitted patch in two parts, as suggested by Greg KH <[email protected]>

 drivers/staging/kpc2000/kpc2000_i2c.c | 2 +-
 drivers/staging/kpc2000/kpc2000_spi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/kpc2000/kpc2000_i2c.c +1 -1
index 25bb5c97dd21..3f1f833d3b51 100644
@@ -269,7 +269,7 @@ static int i801_block_transaction_by_block(struct kpc_i2c *priv,
 	}
 
 	status = i801_transaction(priv,
-			I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
+				  I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
 	if (status)
 		return status;
 
drivers/staging/kpc2000/kpc2000_spi.c +1 -1
index 44017d523da5..16ca18b8aa15 100644
@@ -465,7 +465,7 @@ kp_spi_probe(struct platform_device *pldev)
 	}
 
 	kpspi->base = devm_ioremap(&pldev->dev, r->start,
-					   resource_size(r));
+				   resource_size(r));
 
 	status = spi_register_master(master);
 	if (status < 0) {
Signature · 1 line
2.30.1
maintainer
#5 lore raw
Quoted 6 lines · Nikolay Kyx

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in files kpc2000_i2c.c kpc2000_spi.c

Quoted 8 lines

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>
v3: Splitted patch in two parts, as suggested by Greg KH <[email protected]>

You sent 2 different patches, that did different things, yet have the same exact subject line :(

Please fix up and resend.

thanks,

greg k-h

#6 lore raw

PATCH v4 1/2 staging: kpc2000: code style: match alignment with open parenthesis

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in files kpc2000_i2c.c kpc2000_spi.c

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>
v3: Splitted patch in two parts, as suggested by Greg KH <[email protected]>
v4: Changed patch subject line, as suggested by Greg KH <[email protected]>

 drivers/staging/kpc2000/kpc2000_i2c.c | 2 +-
 drivers/staging/kpc2000/kpc2000_spi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/kpc2000/kpc2000_i2c.c +1 -1
index 25bb5c97dd21..3f1f833d3b51 100644
@@ -269,7 +269,7 @@ static int i801_block_transaction_by_block(struct kpc_i2c *priv,
 	}
 
 	status = i801_transaction(priv,
-			I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
+				  I801_BLOCK_DATA | ENABLE_INT9 | I801_PEC_EN * hwpec);
 	if (status)
 		return status;
 
drivers/staging/kpc2000/kpc2000_spi.c +1 -1
index 44017d523da5..16ca18b8aa15 100644
@@ -465,7 +465,7 @@ kp_spi_probe(struct platform_device *pldev)
 	}
 
 	kpspi->base = devm_ioremap(&pldev->dev, r->start,
-					   resource_size(r));
+				   resource_size(r));
 
 	status = spi_register_master(master);
 	if (status < 0) {
Signature · 1 line
2.30.1
#7 lore raw

PATCH v4 2/2 staging: kpc2000: code style: fix line length issue

This patch fixes the following checkpatch.pl warning:

WARNING: line length of 124 exceeds 100 columns

in file kpc2000_i2c.c

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>
v3: Splitted patch in two parts, as suggested by Greg KH <[email protected]>
v4: Changed patch subject line, as suggested by Greg KH <[email protected]>

 drivers/staging/kpc2000/kpc2000_i2c.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/kpc2000/kpc2000_i2c.c +3 -1
index 25bb5c97dd21..68f5ec000365 100644
@@ -200,7 +200,9 @@ static int i801_check_post(struct kpc_i2c *priv, int status, int timeout)
 		outb_p(status & STATUS_FLAGS, SMBHSTSTS(priv));
 		status = inb_p(SMBHSTSTS(priv)) & STATUS_FLAGS;
 		if (status)
-			dev_warn(&priv->adapter.dev, "Failed clearing status flags at end of transaction (%02x)\n", status);
+			dev_warn(&priv->adapter.dev,
+				 "Failed clearing status flags at end of transaction (%02x)\n",
+				 status);
 	}
 
 	return result;
Signature · 1 line
2.30.1
#8 lore raw

PATCH v3 2/2 staging: kpc2000: code style: fix alignment issues

In reply to Greg KH

This patch fixes the following checkpatch.pl warning:

WARNING: line length of 124 exceeds 100 columns

in file kpc2000_i2c.c

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>
v3: Splitted patch in two parts, as suggested by Greg KH <[email protected]>

 drivers/staging/kpc2000/kpc2000_i2c.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/kpc2000/kpc2000_i2c.c +3 -1
index 25bb5c97dd21..68f5ec000365 100644
@@ -200,7 +200,9 @@ static int i801_check_post(struct kpc_i2c *priv, int status, int timeout)
 		outb_p(status & STATUS_FLAGS, SMBHSTSTS(priv));
 		status = inb_p(SMBHSTSTS(priv)) & STATUS_FLAGS;
 		if (status)
-			dev_warn(&priv->adapter.dev, "Failed clearing status flags at end of transaction (%02x)\n", status);
+			dev_warn(&priv->adapter.dev,
+				 "Failed clearing status flags at end of transaction (%02x)\n",
+				 status);
 	}
 
 	return result;
Signature · 1 line
2.30.1