Skip to contentSkip to conversation

staging: vt6655: remove two unused functions

PATCH New Michael Straube 1 participant 3 messages Mar 17, 2023 Staging

lore
Share & tools
lore
#0 lore raw

cover staging: vt6655: remove two unused functions

This series removes two unused functions.

Michael Straube (2):
staging: vt6655: remove unused bb_power_save_mode_on() function
staging: vt6655: remove unused bb_power_save_mode_off() function

 drivers/staging/vt6655/baseband.c | 44 -------------------------------
 drivers/staging/vt6655/baseband.h |  2 --
 2 files changed, 46 deletions(-)
Signature · 1 line
2.40.0
#1 lore raw

PATCH 1/2 staging: vt6655: remove unused bb_power_save_mode_on() function

The function bb_power_save_mode_on() is not used anywhere, remove it.

---
 drivers/staging/vt6655/baseband.c | 22 ----------------------
 drivers/staging/vt6655/baseband.h |  1 -
 2 files changed, 23 deletions(-)
drivers/staging/vt6655/baseband.c +0 -22
index 6ce41983dcf4..d7c3e4bec560 100644
@@ -2171,28 +2171,6 @@ bb_software_reset(struct vnt_private *priv)
 	bb_write_embedded(priv, 0x9C, 0);
 }
 
-/*
- * Description: Baseband Power Save Mode ON
- *
- * Parameters:
- *  In:
- *      iobase      - I/O base address
- *  Out:
- *      none
- *
- * Return Value: none
- *
- */
-void
-bb_power_save_mode_on(struct vnt_private *priv)
-{
-	unsigned char by_org_data;
-
-	bb_read_embedded(priv, 0x0D, &by_org_data);
-	by_org_data |= BIT(0);
-	bb_write_embedded(priv, 0x0D, by_org_data);
-}
-
 /*
  * Description: Baseband Power Save Mode OFF
  *
drivers/staging/vt6655/baseband.h +0 -1
index 15b2802ed727..d1128d050ac5 100644
@@ -63,7 +63,6 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data);
 /* VT3253 Baseband */
 bool bb_vt3253_init(struct vnt_private *priv);
 void bb_software_reset(struct vnt_private *priv);
-void bb_power_save_mode_on(struct vnt_private *priv);
 void bb_power_save_mode_off(struct vnt_private *priv);
 void bb_set_tx_antenna_mode(struct vnt_private *priv,
 			    unsigned char by_antenna_mode);
Signature · 1 line
2.40.0
#2 lore raw

PATCH 2/2 staging: vt6655: remove unused bb_power_save_mode_off() function

In reply to Michael Straube

The function bb_power_save_mode_off() is not used anywhere, remove it.

---
 drivers/staging/vt6655/baseband.c | 22 ----------------------
 drivers/staging/vt6655/baseband.h |  1 -
 2 files changed, 23 deletions(-)
drivers/staging/vt6655/baseband.c +0 -22
index d7c3e4bec560..0e135af8316b 100644
@@ -2171,28 +2171,6 @@ bb_software_reset(struct vnt_private *priv)
 	bb_write_embedded(priv, 0x9C, 0);
 }
 
-/*
- * Description: Baseband Power Save Mode OFF
- *
- * Parameters:
- *  In:
- *      iobase      - I/O base address
- *  Out:
- *      none
- *
- * Return Value: none
- *
- */
-void
-bb_power_save_mode_off(struct vnt_private *priv)
-{
-	unsigned char by_org_data;
-
-	bb_read_embedded(priv, 0x0D, &by_org_data);
-	by_org_data &= ~(BIT(0));
-	bb_write_embedded(priv, 0x0D, by_org_data);
-}
-
 /*
  * Description: Set Tx Antenna mode
  *
drivers/staging/vt6655/baseband.h +0 -1
index d1128d050ac5..e4a02c240a1c 100644
@@ -63,7 +63,6 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data);
 /* VT3253 Baseband */
 bool bb_vt3253_init(struct vnt_private *priv);
 void bb_software_reset(struct vnt_private *priv);
-void bb_power_save_mode_off(struct vnt_private *priv);
 void bb_set_tx_antenna_mode(struct vnt_private *priv,
 			    unsigned char by_antenna_mode);
 void bb_set_rx_antenna_mode(struct vnt_private *priv,
Signature · 1 line
2.40.0