]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/micrel: Fix typos in micrel driver code comments
authorYicong Hui <yiconghui@gmail.com>
Sun, 18 Jan 2026 12:10:00 +0000 (12:10 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jan 2026 03:00:46 +0000 (19:00 -0800)
Fix various typos and misspellings in code comments in the
drivers/net/ethernet/micrel directory

Signed-off-by: Yicong Hui <yiconghui@gmail.com>
Link: https://patch.msgid.link/20260118121001.136806-3-yiconghui@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/micrel/ks8842.c
drivers/net/ethernet/micrel/ks8851_common.c
drivers/net/ethernet/micrel/ks8851_spi.c
drivers/net/ethernet/micrel/ksz884x.c

index 541c41a9077a4e14dc6c6623e18a7f91f2e09bd6..b7cf2ee9115fd751899252100274b5be94aa7dd2 100644 (file)
@@ -242,7 +242,7 @@ static void ks8842_reset(struct ks8842_adapter *adapter)
                msleep(10);
                iowrite16(0, adapter->hw_addr + REG_GRR);
        } else {
-               /* The KS8842 goes haywire when doing softare reset
+               /* The KS8842 goes haywire when doing software reset
                * a work around in the timberdale IP is implemented to
                * do a hardware reset instead
                ks8842_write16(adapter, 3, 1, REG_GRR);
@@ -312,7 +312,7 @@ static void ks8842_reset_hw(struct ks8842_adapter *adapter)
        /* aggressive back off in half duplex */
        ks8842_enable_bits(adapter, 32, 1 << 8, REG_SGCR1);
 
-       /* enable no excessive collison drop */
+       /* enable no excessive collision drop */
        ks8842_enable_bits(adapter, 32, 1 << 3, REG_SGCR2);
 
        /* Enable port 1 force flow control / back pressure / transmit / recv */
index bb5138806c3ffd807bc405e8c758af79d5075f0e..8048770958d60e81440bc1ccf28be4945b02f8db 100644 (file)
@@ -480,7 +480,7 @@ static int ks8851_net_open(struct net_device *dev)
  * ks8851_net_stop - close network device
  * @dev: The device being closed.
  *
- * Called to close down a network device which has been active. Cancell any
+ * Called to close down a network device which has been active. Cancel any
  * work, shutdown the RX and TX process and then place the chip into a low
  * power state whilst it is not being used.
  */
index c862b13b447a5f7d129ac36ed3501bab1013245d..a161ae45743ab588889f24ab0af334085db81be9 100644 (file)
@@ -39,7 +39,7 @@ static int msg_enable;
  *
  * The @lock ensures that the chip is protected when certain operations are
  * in progress. When the read or write packet transfer is in progress, most
- * of the chip registers are not ccessible until the transfer is finished and
+ * of the chip registers are not accessible until the transfer is finished and
  * the DMA has been de-asserted.
  */
 struct ks8851_net_spi {
@@ -298,7 +298,7 @@ static unsigned int calc_txlen(unsigned int len)
 
 /**
  * ks8851_tx_work - process tx packet(s)
- * @work: The work strucutre what was scheduled.
+ * @work: The work structure what was scheduled.
  *
  * This is called when a number of packets have been scheduled for
  * transmission and need to be sent to the device.
index cdde19b8edc46967d7427d41d4b24a54f660ebbd..60223f03482da966a30a0555b0650f2d1c5a5d3f 100644 (file)
@@ -1166,7 +1166,7 @@ struct ksz_port_info {
  * @tx_cfg:            Cached transmit control settings.
  * @rx_cfg:            Cached receive control settings.
  * @intr_mask:         Current interrupt mask.
- * @intr_set:          Current interrup set.
+ * @intr_set:          Current interrupt set.
  * @intr_blocked:      Interrupt blocked.
  * @rx_desc_info:      Receive descriptor information.
  * @tx_desc_info:      Transmit descriptor information.
@@ -2096,7 +2096,7 @@ static void sw_dis_prio_rate(struct ksz_hw *hw, int port)
 }
 
 /**
- * sw_init_prio_rate - initialize switch prioirty rate
+ * sw_init_prio_rate - initialize switch priority rate
  * @hw:        The hardware instance.
  *
  * This routine initializes the priority rate function of the switch.