Commit 61a2e3be authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Search and replace bTestModeValue with test_mode_nr

Search and replace bTestModeValue with test_mode_nr
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 136cdea3
...@@ -306,25 +306,25 @@ __acquires(musb->lock) ...@@ -306,25 +306,25 @@ __acquires(musb->lock)
case 1: case 1:
pr_debug("TEST_J\n"); pr_debug("TEST_J\n");
/* TEST_J */ /* TEST_J */
musb->bTestModeValue = musb->test_mode_nr =
MGC_M_TEST_J; MGC_M_TEST_J;
break; break;
case 2: case 2:
/* TEST_K */ /* TEST_K */
pr_debug("TEST_K\n"); pr_debug("TEST_K\n");
musb->bTestModeValue = musb->test_mode_nr =
MGC_M_TEST_K; MGC_M_TEST_K;
break; break;
case 3: case 3:
/* TEST_SE0_NAK */ /* TEST_SE0_NAK */
pr_debug("TEST_SE0_NAK\n"); pr_debug("TEST_SE0_NAK\n");
musb->bTestModeValue = musb->test_mode_nr =
MGC_M_TEST_SE0_NAK; MGC_M_TEST_SE0_NAK;
break; break;
case 4: case 4:
/* TEST_PACKET */ /* TEST_PACKET */
pr_debug("TEST_PACKET\n"); pr_debug("TEST_PACKET\n");
musb->bTestModeValue = musb->test_mode_nr =
MGC_M_TEST_PACKET; MGC_M_TEST_PACKET;
break; break;
default: default:
...@@ -670,11 +670,11 @@ irqreturn_t musb_g_ep0_irq(struct musb *musb) ...@@ -670,11 +670,11 @@ irqreturn_t musb_g_ep0_irq(struct musb *musb)
else if (musb->bTestMode) { else if (musb->bTestMode) {
DBG(1, "entering TESTMODE\n"); DBG(1, "entering TESTMODE\n");
if (MGC_M_TEST_PACKET == musb->bTestModeValue) if (MGC_M_TEST_PACKET == musb->test_mode_nr)
musb_load_testpacket(musb); musb_load_testpacket(musb);
musb_writeb(mbase, MGC_O_HDRC_TESTMODE, musb_writeb(mbase, MGC_O_HDRC_TESTMODE,
musb->bTestModeValue); musb->test_mode_nr);
} }
/* FALLTHROUGH */ /* FALLTHROUGH */
......
...@@ -443,7 +443,7 @@ struct musb { ...@@ -443,7 +443,7 @@ struct musb {
enum musb_g_ep0_state ep0_state; enum musb_g_ep0_state ep0_state;
u8 address; u8 address;
u8 bTestModeValue; u8 test_mode_nr;
u16 ackpend; /* ep0 */ u16 ackpend; /* ep0 */
struct usb_gadget g; /* the gadget */ struct usb_gadget g; /* the gadget */
struct usb_gadget_driver *pGadgetDriver; /* its driver */ struct usb_gadget_driver *pGadgetDriver; /* its driver */
......
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