staging: octeon-usb: Match alignment with open parenthesis
This patches fixes the checks- 'Alignment should match open parenthesis' of 'checkpatch.pl'. Signed-off-by: Mahak Gupta <gmahak1@gmail.com> Link: https://lore.kernel.org/r/20210317183846.4867-1-gmahak1@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b0c3683f31
commit
20ad01363a
@ -1258,7 +1258,7 @@ static void cvmx_usb_poll_tx_fifo(struct octeon_hcd *usb)
|
||||
union cvmx_usbcx_hptxsts tx_status;
|
||||
|
||||
tx_status.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HPTXSTS(usb->index));
|
||||
CVMX_USBCX_HPTXSTS(usb->index));
|
||||
if (cvmx_usb_fill_tx_hw(usb, &usb->periodic,
|
||||
tx_status.s.ptxfspcavail))
|
||||
USB_SET_FIELD32(CVMX_USBCX_GINTMSK(usb->index),
|
||||
@ -1272,7 +1272,7 @@ static void cvmx_usb_poll_tx_fifo(struct octeon_hcd *usb)
|
||||
union cvmx_usbcx_gnptxsts tx_status;
|
||||
|
||||
tx_status.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_GNPTXSTS(usb->index));
|
||||
CVMX_USBCX_GNPTXSTS(usb->index));
|
||||
if (cvmx_usb_fill_tx_hw(usb, &usb->nonperiodic,
|
||||
tx_status.s.nptxfspcavail))
|
||||
USB_SET_FIELD32(CVMX_USBCX_GINTMSK(usb->index),
|
||||
@ -1298,13 +1298,13 @@ static void cvmx_usb_fill_tx_fifo(struct octeon_hcd *usb, int channel)
|
||||
|
||||
/* We only need to fill data on outbound channels */
|
||||
hcchar.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCCHARX(channel, usb->index));
|
||||
CVMX_USBCX_HCCHARX(channel, usb->index));
|
||||
if (hcchar.s.epdir != CVMX_USB_DIRECTION_OUT)
|
||||
return;
|
||||
|
||||
/* OUT Splits only have data on the start and not the complete */
|
||||
usbc_hcsplt.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCSPLTX(channel, usb->index));
|
||||
CVMX_USBCX_HCSPLTX(channel, usb->index));
|
||||
if (usbc_hcsplt.s.spltena && usbc_hcsplt.s.compsplt)
|
||||
return;
|
||||
|
||||
@ -1313,7 +1313,7 @@ static void cvmx_usb_fill_tx_fifo(struct octeon_hcd *usb, int channel)
|
||||
* words.
|
||||
*/
|
||||
usbc_hctsiz.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
if (!usbc_hctsiz.s.xfersize)
|
||||
return;
|
||||
|
||||
@ -1360,7 +1360,7 @@ static void cvmx_usb_start_channel_control(struct octeon_hcd *usb,
|
||||
union cvmx_usbcx_hctsizx usbc_hctsiz;
|
||||
|
||||
usbc_hctsiz.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
|
||||
switch (transaction->stage) {
|
||||
case CVMX_USB_STAGE_NON_CONTROL:
|
||||
@ -1517,7 +1517,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,
|
||||
|
||||
/* Clear all channel status bits */
|
||||
usbc_hcint.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCINTX(channel, usb->index));
|
||||
CVMX_USBCX_HCINTX(channel, usb->index));
|
||||
|
||||
cvmx_usb_write_csr32(usb,
|
||||
CVMX_USBCX_HCINTX(channel, usb->index),
|
||||
@ -1552,7 +1552,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,
|
||||
|
||||
/* Enable the channel interrupt to propagate */
|
||||
usbc_haintmsk.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HAINTMSK(usb->index));
|
||||
CVMX_USBCX_HAINTMSK(usb->index));
|
||||
usbc_haintmsk.s.haintmsk |= 1 << channel;
|
||||
cvmx_usb_write_csr32(usb, CVMX_USBCX_HAINTMSK(usb->index),
|
||||
usbc_haintmsk.u32);
|
||||
@ -1836,7 +1836,7 @@ static void cvmx_usb_start_channel(struct octeon_hcd *usb, int channel,
|
||||
* Returns: Pipe or NULL if none are ready
|
||||
*/
|
||||
static struct cvmx_usb_pipe *cvmx_usb_find_ready_pipe(struct octeon_hcd *usb,
|
||||
enum cvmx_usb_transfer xfer_type)
|
||||
enum cvmx_usb_transfer xfer_type)
|
||||
{
|
||||
struct list_head *list = usb->active_pipes + xfer_type;
|
||||
u64 current_frame = usb->frame_number;
|
||||
@ -2309,7 +2309,8 @@ static int cvmx_usb_cancel(struct octeon_hcd *usb,
|
||||
CVMX_SYNCW;
|
||||
|
||||
usbc_hcchar.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCCHARX(pipe->channel, usb->index));
|
||||
CVMX_USBCX_HCCHARX(pipe->channel,
|
||||
usb->index));
|
||||
/*
|
||||
* If the channel isn't enabled then the transaction already
|
||||
* completed.
|
||||
@ -2605,11 +2606,12 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel)
|
||||
|
||||
/* Read the interrupt status bits for the channel */
|
||||
usbc_hcint.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCINTX(channel, usb->index));
|
||||
CVMX_USBCX_HCINTX(channel, usb->index));
|
||||
|
||||
if (usb->init_flags & CVMX_USB_INITIALIZE_FLAGS_NO_DMA) {
|
||||
usbc_hcchar.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCCHARX(channel, usb->index));
|
||||
CVMX_USBCX_HCCHARX(channel,
|
||||
usb->index));
|
||||
|
||||
if (usbc_hcchar.s.chena && usbc_hcchar.s.chdis) {
|
||||
/*
|
||||
@ -2688,9 +2690,9 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel)
|
||||
* transferred
|
||||
*/
|
||||
usbc_hcchar.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCCHARX(channel, usb->index));
|
||||
CVMX_USBCX_HCCHARX(channel, usb->index));
|
||||
usbc_hctsiz.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
CVMX_USBCX_HCTSIZX(channel, usb->index));
|
||||
|
||||
/*
|
||||
* Calculating the number of bytes successfully transferred is dependent
|
||||
@ -3010,7 +3012,7 @@ static int cvmx_usb_poll(struct octeon_hcd *usb)
|
||||
union cvmx_usbcx_haint usbc_haint;
|
||||
|
||||
usbc_haint.u32 = cvmx_usb_read_csr32(usb,
|
||||
CVMX_USBCX_HAINT(usb->index));
|
||||
CVMX_USBCX_HAINT(usb->index));
|
||||
while (usbc_haint.u32) {
|
||||
int channel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user