[openwrt/openwrt] mediatek: mt7622: rtl8367c: source comment fixes

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 12 05:46:34 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/afad4e8ab68093544d9e5f2d09104251bf6c7686

commit afad4e8ab68093544d9e5f2d09104251bf6c7686
Author: Paul Donald <newtwen+github at gmail.com>
AuthorDate: Wed Apr 3 17:23:16 2024 +0200

    mediatek: mt7622: rtl8367c: source comment fixes
    
    Fix also some Chinese -> UTF8 encoding problems
    
    Improves indexing and searches
    
    Signed-off-by: Paul Donald <newtwen+github at gmail.com>
---
 .../files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_port.c    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_port.c b/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_port.c
index 78e80a0b20..fae046639d 100644
--- a/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_port.c
+++ b/target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_port.c
@@ -951,7 +951,7 @@ rtk_uint8 Sgmii_Init[SGMII_INIT_SIZE] = {
  *      Set UNDA behavior
  * Input:
  *      port        - port ID
- *      behavior    - 0: flooding to unknwon DA portmask; 1: drop; 2:trap; 3: flooding
+ *      behavior    - 0: flooding to unknown DA portmask; 1: drop; 2:trap; 3: flooding
  * Output:
  *      None
  * Return:
@@ -981,7 +981,7 @@ ret_t rtl8367c_setAsicPortUnknownDaBehavior(rtk_uint32 port, rtk_uint32 behavior
  * Input:
  *      port        - port ID
  * Output:
- *      pBehavior   - 0: flooding to unknwon DA portmask; 1: drop; 2:trap; 3: flooding
+ *      pBehavior   - 0: flooding to unknown DA portmask; 1: drop; 2:trap; 3: flooding
  * Return:
  *      RT_ERR_OK   - Success
  *      RT_ERR_SMI  - SMI access error
@@ -3724,7 +3724,7 @@ ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
                     return retVal;
                 /*
                 1: MAC link = SGMII SerDes link
-                0: MAC link = SGMII config link ��cfg_sgmii_link��
+                0: MAC link = SGMII config link (cfg_sgmii_link)
                 */
                 if ((retVal = rtl8367c_setAsicRegBit(0x1d95, 2, 0)) != RT_ERR_OK)
                     return retVal;
@@ -4032,7 +4032,7 @@ ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
                 if ((retVal = rtl8367c_setAsicRegBits(0x1d95, 0x1f00, 0x2)) != RT_ERR_OK)
                     return retVal;
 
-                /*select MAC link source when port6/7 be set sgmii mode ��cfg_sgmii_link��*/
+                /*select MAC link source when port6/7 be set sgmii mode (cfg_sgmii_link)*/
                 if ((retVal = rtl8367c_setAsicRegBit(0x1d95, 2, 0)) != RT_ERR_OK)
                     return retVal;
             }




More information about the lede-commits mailing list