Skip to contentSkip to conversation

staging: cleanup of sdio_intf.c

PATCH Superseded Manuel Ebner 3 participants 8 messages May 22 – May 23 Staging

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#1 lore raw

PATCH v2 1/3 staging: sdio_intf.c: refactor function

remove unused argument of rtw_sdio_if1_init()

---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +2 -2
index 1d0239eef114..4439ded602b6 100644
@@ -237,7 +237,7 @@ static void sd_intf_stop(struct adapter *padapter)
 }
 
 
-static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct sdio_device_id  *pdid)
+static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj)
 {
 	int status = _FAIL;
 	struct net_device *pnetdev;
@@ -368,7 +368,7 @@ static int rtw_drv_init(
 	if (!dvobj)
 		goto exit;
 
-	if1 = rtw_sdio_if1_init(dvobj, id);
+	if1 = rtw_sdio_if1_init(dvobj);
 	if (!if1)
 		goto free_dvobj;
 
Signature · 1 line
2.54.0
#2 lore raw

PATCH v2 2/3 staging: cleanup whitespace of sdio_intf.c

In reply to Manuel Ebner

remove empty lines, add lines where appropriate
reformat function declaration

---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +3 -6
index 4439ded602b6..a78fb4bc7155 100644
@@ -47,7 +47,6 @@ static void sd_sync_int_hdl(struct sdio_func *func)
 {
 	struct dvobj_priv *psdpriv;
 
-
 	psdpriv = sdio_get_drvdata(func);
 
 	if (!psdpriv->if1)
@@ -168,6 +167,7 @@ static void sdio_deinit(struct dvobj_priv *dvobj)
 		sdio_release_host(func);
 	}
 }
+
 static struct dvobj_priv *sdio_dvobj_init(struct sdio_func *func)
 {
 	int status = _FAIL;
@@ -236,7 +236,6 @@ static void sd_intf_stop(struct adapter *padapter)
 	rtw_hal_disable_interrupt(padapter);
 }
 
-
 static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj)
 {
 	int status = _FAIL;
@@ -270,7 +269,6 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj)
 	/* 4 3.1 set hardware operation functions */
 	rtw_set_hal_ops(padapter);
 
-
 	/* 3 5. initialize Chip version */
 	padapter->intf_start = &sd_intf_start;
 	padapter->intf_stop = &sd_intf_stop;
@@ -356,9 +354,8 @@ static void rtw_sdio_if1_deinit(struct adapter *if1)
  * notes: drv_init() is called when the bus driver has located a card for us to support.
  *        We accept the new device by returning 0.
  */
-static int rtw_drv_init(
-	struct sdio_func *func,
-	const struct sdio_device_id *id)
+static int rtw_drv_init(struct sdio_func *func,
+			const struct sdio_device_id *id)
 {
 	int status = _FAIL;
 	struct adapter *if1 = NULL;
Signature · 1 line
2.54.0
maintainer
#3 lore raw

Re: [PATCH v2 2/3] staging: cleanup whitespace of sdio_intf.c

Quoted 2 lines · Manuel Ebner

remove empty lines, add lines where appropriate
reformat function declaration

That is multiple different things, which of course need multiple different patches.

thanks,

greg k-h

#4 lore raw

PATCH v2 3/3 staging: cleanup braces of sdio_intf.c

In reply to Manuel Ebner

add braces to else statement

---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +2 -1
index a78fb4bc7155..fc16cf2e577d 100644
@@ -100,8 +100,9 @@ static void sdio_free_irq(struct dvobj_priv *dvobj)
 				netdev_err(dvobj->if1->pnetdev,
 					   "%s: sdio_release_irq FAIL(%d)!\n",
 					   __func__, err);
-			} else
+			} else {
 				dvobj->drv_dbg.dbg_sdio_free_irq_cnt++;
+			}
 			sdio_release_host(func);
 		}
 		dvobj->irq_alloc = 0;
Signature · 1 line
2.54.0
#5 lore raw
In reply to Manuel Ebner
Quoted 2 lines · Manuel Ebner

did i overdo the split up?

The split is fine. The subsystem prefix needs to be improved. The capitalization and puncuation in the commit message could be improved as well.

regards,
dan carpenter

#6 lore raw
Quoted 5 lines · Dan Carpenter
Quoted 2 lines · Manuel Ebner

did i overdo the split up?

The split is fine.  The subsystem prefix needs to be improved.

Is it wireless? If it isn't how can I find the subsystems for my patches.

Quoted 3 lines

The
capitalization and puncuation in the commit message could be improved as well.

I will do that.

Thanks
Manuel Ebner

Quoted 3 lines

regards,
dan carpenter

#7 lore raw
Quoted 9 lines · Manuel Ebner
Quoted 5 lines · Dan Carpenter
Quoted 2 lines · Manuel Ebner

did i overdo the split up?

The split is fine.  The subsystem prefix needs to be improved.

Is it wireless? If it isn't how can I find the subsystems for my patches.

git log --oneline drivers/staging/rtl8723bs/os_dep/sdio_intf.c

Use what everyone else uses:
Subject: staging: rtl8723bs: cleanup of sdio_intf.c

regards,
dan carpenter