Commit a5b2cb5a authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace bResult with result

Search and replace bResult with result
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 1d958a49
...@@ -76,29 +76,29 @@ static int service_tx_status_request( ...@@ -76,29 +76,29 @@ static int service_tx_status_request(
{ {
void __iomem *mbase = musb->mregs; void __iomem *mbase = musb->mregs;
int handled = 1; int handled = 1;
u8 bResult[2], epnum = 0; u8 result[2], epnum = 0;
const u8 bRecip = ctrlrequest->bRequestType & USB_RECIP_MASK; const u8 bRecip = ctrlrequest->bRequestType & USB_RECIP_MASK;
bResult[1] = 0; result[1] = 0;
switch (bRecip) { switch (bRecip) {
case USB_RECIP_DEVICE: case USB_RECIP_DEVICE:
bResult[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED; result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED;
bResult[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP;
#ifdef CONFIG_USB_MUSB_OTG #ifdef CONFIG_USB_MUSB_OTG
if (musb->g.is_otg) { if (musb->g.is_otg) {
bResult[0] |= musb->g.b_hnp_enable result[0] |= musb->g.b_hnp_enable
<< USB_DEVICE_B_HNP_ENABLE; << USB_DEVICE_B_HNP_ENABLE;
bResult[0] |= musb->g.a_alt_hnp_support result[0] |= musb->g.a_alt_hnp_support
<< USB_DEVICE_A_ALT_HNP_SUPPORT; << USB_DEVICE_A_ALT_HNP_SUPPORT;
bResult[0] |= musb->g.a_hnp_support result[0] |= musb->g.a_hnp_support
<< USB_DEVICE_A_HNP_SUPPORT; << USB_DEVICE_A_HNP_SUPPORT;
} }
#endif #endif
break; break;
case USB_RECIP_INTERFACE: case USB_RECIP_INTERFACE:
bResult[0] = 0; result[0] = 0;
break; break;
case USB_RECIP_ENDPOINT: { case USB_RECIP_ENDPOINT: {
...@@ -109,7 +109,7 @@ static int service_tx_status_request( ...@@ -109,7 +109,7 @@ static int service_tx_status_request(
epnum = (u8) ctrlrequest->wIndex; epnum = (u8) ctrlrequest->wIndex;
if (!epnum) { if (!epnum) {
bResult[0] = 0; result[0] = 0;
break; break;
} }
...@@ -136,7 +136,7 @@ static int service_tx_status_request( ...@@ -136,7 +136,7 @@ static int service_tx_status_request(
& MGC_M_RXCSR_P_SENDSTALL; & MGC_M_RXCSR_P_SENDSTALL;
musb_ep_select(mbase, 0); musb_ep_select(mbase, 0);
bResult[0] = tmp ? 1 : 0; result[0] = tmp ? 1 : 0;
} break; } break;
default: default:
...@@ -151,7 +151,7 @@ static int service_tx_status_request( ...@@ -151,7 +151,7 @@ static int service_tx_status_request(
if (len > 2) if (len > 2)
len = 2; len = 2;
musb_write_fifo(&musb->endpoints[0], len, bResult); musb_write_fifo(&musb->endpoints[0], len, result);
} }
return handled; return handled;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment