Skip to contentSkip to conversation

drivers/pci/setup-irq.c: Fix up comments.

PATCH Applied Pranay Sanghai 2 participants 2 messages Sep 18, 2021 – Sep 28, 2021 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/pci/setup-irq.c: Fix up comments.

Make comments follow multi-line comment conventions. No functional change intended.

---
 drivers/pci/setup-irq.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/pci/setup-irq.c +11 -8
index 7129494754dd..ed628771250b 100644
@@ -28,12 +28,13 @@ void pci_assign_irq(struct pci_dev *dev)
 		return;
 	}
 
-	/* If this device is not on the primary bus, we need to figure out
-	   which interrupt pin it will come in on.   We know which slot it
-	   will come in on 'cos that slot is where the bridge is.   Each
-	   time the interrupt line passes through a PCI-PCI bridge we must
-	   apply the swizzle function.  */
-
+	/*
+	 * If this device is not on the primary bus, we need to figure out
+	 * which interrupt pin it will come in on. We know which slot it
+	 * will come in on 'cos that slot is where the bridge is. Each
+	 * time the interrupt line passes through a PCI-PCI bridge we must
+	 * apply the swizzle function.
+	 */
 	pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
 	/* Cope with illegal. */
 	if (pin > 4)
@@ -56,7 +57,9 @@ void pci_assign_irq(struct pci_dev *dev)
 
 	pci_dbg(dev, "assign IRQ: got %d\n", dev->irq);
 
-	/* Always tell the device, so the driver knows what is
-	   the real IRQ to use; the device does not use it. */
+	/*
+	 * Always tell the device, so the driver knows what is
+	 * the real IRQ to use; the device does not use it.
+	 */
 	pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
 }
Signature · 1 line
2.33.0
#1 lore raw
Quoted 3 lines · Pranay Sanghai

Make comments follow multi-line comment conventions. No functional change intended.

Applied to pci/misc for v5.16, with the changes below, thanks!

- Updated subject line to follow the convention (see "git log --oneline drivers/pci/setup-irq.c").

- Rewrapped commit log to fit in 75 columns so it fits in 80 when "git log" indents it.

- Rewrapped comments to fill 80 columns like the rest of the file.

- Replaced "'cos" with "because".

Quoted 43 lines
---
 drivers/pci/setup-irq.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/pci/setup-irq.c +11 -8
index 7129494754dd..ed628771250b 100644
@@ -28,12 +28,13 @@ void pci_assign_irq(struct pci_dev *dev)
 		return;
 	}
 
-	/* If this device is not on the primary bus, we need to figure out
-	   which interrupt pin it will come in on.   We know which slot it
-	   will come in on 'cos that slot is where the bridge is.   Each
-	   time the interrupt line passes through a PCI-PCI bridge we must
-	   apply the swizzle function.  */
-
+	/*
+	 * If this device is not on the primary bus, we need to figure out
+	 * which interrupt pin it will come in on. We know which slot it
+	 * will come in on 'cos that slot is where the bridge is. Each
+	 * time the interrupt line passes through a PCI-PCI bridge we must
+	 * apply the swizzle function.
+	 */
 	pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
 	/* Cope with illegal. */
 	if (pin > 4)
@@ -56,7 +57,9 @@ void pci_assign_irq(struct pci_dev *dev)
 
 	pci_dbg(dev, "assign IRQ: got %d\n", dev->irq);
 
-	/* Always tell the device, so the driver knows what is
-	   the real IRQ to use; the device does not use it. */
+	/*
+	 * Always tell the device, so the driver knows what is
+	 * the real IRQ to use; the device does not use it.
+	 */
 	pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
 }
Signature · 1 line
2.33.0