linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: vt6655: remove two unused functions
@ 2023-03-17  6:50 Michael Straube
  2023-03-17  6:50 ` [PATCH 1/2] staging: vt6655: remove unused bb_power_save_mode_on() function Michael Straube
  2023-03-17  6:50 ` [PATCH 2/2] staging: vt6655: remove unused bb_power_save_mode_off() function Michael Straube
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Straube @ 2023-03-17  6:50 UTC (permalink / raw)
  To: gregkh; +Cc: forest, linux-staging, linux-kernel, Michael Straube

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(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] staging: vt6655: remove unused bb_power_save_mode_on() function
  2023-03-17  6:50 [PATCH 0/2] staging: vt6655: remove two unused functions Michael Straube
@ 2023-03-17  6:50 ` Michael Straube
  2023-03-17  6:50 ` [PATCH 2/2] staging: vt6655: remove unused bb_power_save_mode_off() function Michael Straube
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Straube @ 2023-03-17  6:50 UTC (permalink / raw)
  To: gregkh; +Cc: forest, linux-staging, linux-kernel, Michael Straube

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

Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
 drivers/staging/vt6655/baseband.c | 22 ----------------------
 drivers/staging/vt6655/baseband.h |  1 -
 2 files changed, 23 deletions(-)

diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index 6ce41983dcf4..d7c3e4bec560 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -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
  *
diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h
index 15b2802ed727..d1128d050ac5 100644
--- a/drivers/staging/vt6655/baseband.h
+++ b/drivers/staging/vt6655/baseband.h
@@ -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);
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] staging: vt6655: remove unused bb_power_save_mode_off() function
  2023-03-17  6:50 [PATCH 0/2] staging: vt6655: remove two unused functions Michael Straube
  2023-03-17  6:50 ` [PATCH 1/2] staging: vt6655: remove unused bb_power_save_mode_on() function Michael Straube
@ 2023-03-17  6:50 ` Michael Straube
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Straube @ 2023-03-17  6:50 UTC (permalink / raw)
  To: gregkh; +Cc: forest, linux-staging, linux-kernel, Michael Straube

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

Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
 drivers/staging/vt6655/baseband.c | 22 ----------------------
 drivers/staging/vt6655/baseband.h |  1 -
 2 files changed, 23 deletions(-)

diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index d7c3e4bec560..0e135af8316b 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -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
  *
diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h
index d1128d050ac5..e4a02c240a1c 100644
--- a/drivers/staging/vt6655/baseband.h
+++ b/drivers/staging/vt6655/baseband.h
@@ -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,
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-17  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-17  6:50 [PATCH 0/2] staging: vt6655: remove two unused functions Michael Straube
2023-03-17  6:50 ` [PATCH 1/2] staging: vt6655: remove unused bb_power_save_mode_on() function Michael Straube
2023-03-17  6:50 ` [PATCH 2/2] staging: vt6655: remove unused bb_power_save_mode_off() function Michael Straube

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).