diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2016-04-11 15:05:12 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-19 10:11:55 +0200 |
commit | 9bc07890f891267285716c09bfee58e239137d36 (patch) | |
tree | 6269280bbd174fc537d03fd6d8ae1043f1db15e8 /drivers/usb/gadget/udc/r8a66597-udc.c | |
parent | usb: renesas_usbhs: use usb_gadget_{un}map_request_by_dev() for IPMMU (diff) | |
download | linux-9bc07890f891267285716c09bfee58e239137d36.tar.xz linux-9bc07890f891267285716c09bfee58e239137d36.zip |
usb: gadget: r8a66597-udc: Deinline pipe_change, save 2176 bytes
This function compiles to 298 bytes of machine code, has ~10 callsites.
This is a USB 2.0 device, USB 2.0 is limited to ~40 MB/s, so should be
almost never CPU bound. No need to optimize for speed this agressively.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Felipe Balbi <balbi@ti.com>
CC: linux-usb@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/r8a66597-udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/r8a66597-udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index baa0609a429d..8b300e6da7fc 100644 --- a/drivers/usb/gadget/udc/r8a66597-udc.c +++ b/drivers/usb/gadget/udc/r8a66597-udc.c @@ -296,7 +296,7 @@ static void r8a66597_change_curpipe(struct r8a66597 *r8a66597, u16 pipenum, } while ((tmp & mask) != loop); } -static inline void pipe_change(struct r8a66597 *r8a66597, u16 pipenum) +static void pipe_change(struct r8a66597 *r8a66597, u16 pipenum) { struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; |