]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: rename DisableInterrupt8723BSdio() to snake_case
authorNikolay Kulikov <nikolayof23@gmail.com>
Thu, 30 Apr 2026 17:29:06 +0000 (20:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:49:26 +0000 (16:49 +0200)
Rename function DisableInterrupt8723BSdio() to
rtw_sdio_disable_interrupt() and format its description to comply with
Linux kernel coding style.
Declare this function without 'extern' prototype in the .h file to fix
checkpatch.pl warning.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260430172954.12828-3-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c
drivers/staging/rtl8723bs/include/sdio_ops.h
drivers/staging/rtl8723bs/os_dep/os_intfs.c
drivers/staging/rtl8723bs/os_dep/sdio_intf.c

index 77a6a5c7ec7e3dbade56094473be88487003c6a8..5d74913be573e50ff09be494fda6e369988374f4 100644 (file)
@@ -626,16 +626,13 @@ void rtw_sdio_enable_interrupt(struct adapter *adapter)
        rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE);
 }
 
-/*  */
-/*     Description: */
-/*             Disable SDIO Host IMR configuration to mask unnecessary interrupt service. */
-/*  */
-/*     Assumption: */
-/*             Using SDIO Local register ONLY for configuration. */
-/*  */
-/*     Created by Roger, 2011.02.11. */
-/*  */
-void DisableInterrupt8723BSdio(struct adapter *adapter)
+/*
+ * Disable SDIO Host IMR configuration to mask unnecessary interrupt service.
+ *
+ * Assumption:
+ *     Using SDIO Local register ONLY for configuration.
+ */
+void rtw_sdio_disable_interrupt(struct adapter *adapter)
 {
        __le32 himr;
 
index 7bb4b2047cc1dcacb2fa049863747b299626f4ed..13f13076bc16323f08126948742a7782d8499cde 100644 (file)
@@ -28,7 +28,7 @@ extern u8 CheckIPSStatus(struct adapter *padapter);
 extern void InitInterrupt8723BSdio(struct adapter *padapter);
 extern void InitSysInterrupt8723BSdio(struct adapter *padapter);
 void rtw_sdio_enable_interrupt(struct adapter *padapter);
-extern void DisableInterrupt8723BSdio(struct adapter *padapter);
+void rtw_sdio_disable_interrupt(struct adapter *padapter);
 extern u8 HalQueryTxBufferStatus8723BSdio(struct adapter *padapter);
 extern void HalQueryTxOQTBufferStatus8723BSdio(struct adapter *padapter);
 #endif /*  !__SDIO_OPS_H__ */
index 9270daa018b99dc628344be8dfc0ed412df9f887..f31196f54b3e09a0c4f939cacb60fc04a07b8a9d 100644 (file)
@@ -1141,7 +1141,7 @@ static int rtw_resume_process_normal(struct adapter *padapter)
                if (ret)
                        goto exit;
        }
-       DisableInterrupt8723BSdio(padapter);
+       rtw_sdio_disable_interrupt(padapter);
        /* if (sdio_alloc_irq(adapter_to_dvobj(padapter)) != _SUCCESS) */
        if ((padapter->intf_alloc_irq) && (padapter->intf_alloc_irq(adapter_to_dvobj(padapter)) != _SUCCESS)) {
                ret = -1;
index d047481816eb6b29b0647d68bdb6a3f1afacdbcd..c43a0391a5ca7378b3479d209b5f195fa02deb54 100644 (file)
@@ -211,7 +211,7 @@ static void sd_intf_stop(struct adapter *padapter)
        if (!padapter)
                return;
 
-       DisableInterrupt8723BSdio(padapter);
+       rtw_sdio_disable_interrupt(padapter);
 }
 
 
@@ -280,7 +280,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct
        /*  set mac addr */
        rtw_macaddr_cfg(&psdio->func->dev, padapter->eeprompriv.mac_addr);
 
-       DisableInterrupt8723BSdio(padapter);
+       rtw_sdio_disable_interrupt(padapter);
 
        status = _SUCCESS;