]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace bTestModeValue with test_mode_nr
authorTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 11:30:49 +0000 (04:30 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 11:30:49 +0000 (04:30 -0700)
Search and replace bTestModeValue with test_mode_nr

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/g_ep0.c
drivers/usb/musb/musbdefs.h

index b024d41b9e9a3ef2d569ffe7dbea7a38253e9f5e..aa60a43fa4fd1f23a1263304f48080d5fa3b1351 100644 (file)
@@ -306,25 +306,25 @@ __acquires(musb->lock)
                                        case 1:
                                                pr_debug("TEST_J\n");
                                                /* TEST_J */
-                                               musb->bTestModeValue =
+                                               musb->test_mode_nr =
                                                        MGC_M_TEST_J;
                                                break;
                                        case 2:
                                                /* TEST_K */
                                                pr_debug("TEST_K\n");
-                                               musb->bTestModeValue =
+                                               musb->test_mode_nr =
                                                        MGC_M_TEST_K;
                                                break;
                                        case 3:
                                                /* TEST_SE0_NAK */
                                                pr_debug("TEST_SE0_NAK\n");
-                                               musb->bTestModeValue =
+                                               musb->test_mode_nr =
                                                        MGC_M_TEST_SE0_NAK;
                                                break;
                                        case 4:
                                                /* TEST_PACKET */
                                                pr_debug("TEST_PACKET\n");
-                                               musb->bTestModeValue =
+                                               musb->test_mode_nr =
                                                        MGC_M_TEST_PACKET;
                                                break;
                                        default:
@@ -670,11 +670,11 @@ irqreturn_t musb_g_ep0_irq(struct musb *musb)
                else if (musb->bTestMode) {
                        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_writeb(mbase, MGC_O_HDRC_TESTMODE,
-                                       musb->bTestModeValue);
+                                       musb->test_mode_nr);
                }
                /* FALLTHROUGH */
 
index 4ebaab756fdad9dbb07a9013c6668336aef36468..a9d2ef607ac325c7c0fb0733bfdcce1a9793e051 100644 (file)
@@ -443,7 +443,7 @@ struct musb {
 
        enum musb_g_ep0_state   ep0_state;
        u8                      address;
-       u8                      bTestModeValue;
+       u8                      test_mode_nr;
        u16                     ackpend;                /* ep0 */
        struct usb_gadget       g;                      /* the gadget */
        struct usb_gadget_driver *pGadgetDriver;        /* its driver */