diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-07-04 11:31:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 13:13:44 +0200 |
commit | 013668f3dc5d4e54f1c081e99802c42bb02bcb80 (patch) | |
tree | 32a826a2d3ccd6d6c2ed6e8473c71e78c390ac7e /drivers/usb/renesas_usbhs | |
parent | 020e03b78312ab0df1fd3c4ea62e675724cd18cf (diff) | |
download | linux-013668f3dc5d4e54f1c081e99802c42bb02bcb80.tar.gz linux-013668f3dc5d4e54f1c081e99802c42bb02bcb80.tar.xz |
usb: renesas_usbhs: make array type_array static const
Array type_array can be made static const rather than being
populated on the stack. Makes the object code smaller:
Before:
text data bss dec hex filename
8087 1496 0 9583 256f drivers/usb/renesas_usbhs/pipe.o
After:
text data bss dec hex filename
7883 1584 0 9467 24fb drivers/usb/renesas_usbhs/pipe.o
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index 9396a8c14af8..d811f0550c04 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c @@ -401,7 +401,7 @@ static int usbhsp_setup_pipecfg(struct usbhs_pipe *pipe, int is_host, u16 dir = 0; u16 epnum = 0; u16 shtnak = 0; - u16 type_array[] = { + static const u16 type_array[] = { [USB_ENDPOINT_XFER_BULK] = TYPE_BULK, [USB_ENDPOINT_XFER_INT] = TYPE_INT, [USB_ENDPOINT_XFER_ISOC] = TYPE_ISO, |