* [PATCH 1/1] drivers:usb: use setup_timer
@ 2017-09-21 11:28 Allen Pais
[not found] ` <CAH8TKc-F0=cL-YBetuM_5LShEjWpwAic+T8Wy7eBKhv5d6c6Zg@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Allen Pais @ 2017-09-21 11:28 UTC (permalink / raw)
To: linux-kernel; +Cc: balbi, gregkh, Allen Pais
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
---
drivers/usb/gadget/udc/omap_udc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c
index f05ba68..b4e4c70 100644
--- a/drivers/usb/gadget/udc/omap_udc.c
+++ b/drivers/usb/gadget/udc/omap_udc.c
@@ -2546,9 +2546,7 @@ omap_ep_setup(char *name, u8 addr, u8 type,
}
if (dbuf && addr)
epn_rxtx |= UDC_EPN_RX_DB;
- init_timer(&ep->timer);
- ep->timer.function = pio_out_timer;
- ep->timer.data = (unsigned long) ep;
+ setup_timer(&ep->timer, pio_out_timer, (unsigned long)ep);
}
if (addr)
epn_rxtx |= UDC_EPN_RX_VALID;
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] drivers:usb: use setup_timer
[not found] ` <CAH8TKc-F0=cL-YBetuM_5LShEjWpwAic+T8Wy7eBKhv5d6c6Zg@mail.gmail.com>
@ 2017-09-21 12:35 ` Allen
0 siblings, 0 replies; 2+ messages in thread
From: Allen @ 2017-09-21 12:35 UTC (permalink / raw)
To: Felipe Balbi; +Cc: linux-kernel, Greg Kroah-Hartman
>
> subject should've been something like:
>
> usb: gadget: udc: omap: use setup_timer() helper
>
> Also, you should've Cced linux-usb@vger.kernel.org and
> linux-omap@vger.kernel.org
>
> On Thu, Sep 21, 2017 at 2:28 PM Allen Pais <allen.lkml@gmail.com> wrote:
>>
>> Use setup_timer function instead of initializing timer with the
>> function and data fields.
>
>
> the spaces a the beginning of each line are pointless, please remove.
>
> Other than that, patch looks good. Please fix these details and resend.
>
Sure.
--
- Allen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-21 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-21 11:28 [PATCH 1/1] drivers:usb: use setup_timer Allen Pais
[not found] ` <CAH8TKc-F0=cL-YBetuM_5LShEjWpwAic+T8Wy7eBKhv5d6c6Zg@mail.gmail.com>
2017-09-21 12:35 ` Allen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.