Thread (1 message) 1 message, 1 author, 2021-05-07

Re: [PATCH 1/2] usb: musb: remove unused function argument

From: SAURAV GIREPUNJE <hidden>
Date: 2021-05-07 05:57:44

On Fri, May 07, 2021 at 04:54:33AM +0000, SAURAV GIREPUNJE wrote:
quoted hunk

________________________________
From: Saurav Girepunje <redacted>
Sent: Friday, May 7, 2021 10:11 AM
To: saurav.girepunje@hotmail.com <redacted>
Cc: linux-usb@vger.kernel.org <redacted>
Subject: [PATCH 1/2] usb: musb: remove unused function argument

Remove unused function argument from musb_tx_dma_set_mode_cppi_tusb()
in musb_host.c

Signed-off-by: Saurav Girepunje <redacted>
---
 drivers/usb/musb/musb_host.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 8b7d22a0c0fb..978d822af2c5 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -602,12 +602,8 @@ static void musb_tx_dma_set_mode_mentor(struct dma_controller *dma,
         musb_writew(epio, MUSB_TXCSR, csr);
 }

-static void musb_tx_dma_set_mode_cppi_tusb(struct dma_controller *dma,
-                                          struct musb_hw_ep *hw_ep,
-                                          struct musb_qh *qh,
+static void musb_tx_dma_set_mode_cppi_tusb(struct musb_hw_ep *hw_ep,
                                            struct urb *urb,
-                                          u32 offset,
-                                          u32 *length,
                                            u8 *mode)
 {
         struct dma_channel *channel = hw_ep->tx_channel;
@@ -633,8 +629,7 @@ static bool musb_tx_dma_program(struct dma_controller *dma,
                 musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, offset,
                                             &length, &mode);
         else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb))
-               musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset,
-                                              &length, &mode);
+               musb_tx_dma_set_mode_cppi_tusb(hw_ep, urb, &mode);
         else
                 return false;

--
2.25.1
Please ignore this mail.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help