Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
e31dc61e
Commit
e31dc61e
authored
Jun 23, 2013
by
Axel Lin
Committed by
Tom Rini
Jun 26, 2013
Browse files
usb: musb: Use ARRAY_SIZE at appropriate places
Signed-off-by:
Axel Lin
<
axel.lin@ingics.com
>
parent
31bf0f57
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/usb/musb/musb_hcd.c
View file @
e31dc61e
...
...
@@ -1105,8 +1105,7 @@ int usb_lowlevel_init(int index, void **controller)
/* Configure all the endpoint FIFO's and start usb controller */
musbr
=
musb_cfg
.
regs
;
musb_configure_ep
(
&
epinfo
[
0
],
sizeof
(
epinfo
)
/
sizeof
(
struct
musb_epinfo
));
musb_configure_ep
(
&
epinfo
[
0
],
ARRAY_SIZE
(
epinfo
));
musb_start
();
/*
...
...
drivers/usb/musb/musb_udc.c
View file @
e31dc61e
...
...
@@ -894,8 +894,7 @@ void udc_setup_ep(struct usb_device_instance *device, unsigned int id,
epinfo
[
id
*
2
].
epsize
=
endpoint
->
rcv_packetSize
;
}
musb_configure_ep
(
&
epinfo
[
0
],
sizeof
(
epinfo
)
/
sizeof
(
struct
musb_epinfo
));
musb_configure_ep
(
&
epinfo
[
0
],
ARRAY_SIZE
(
epinfo
));
}
else
{
if
(
debug_level
>
0
)
serial_printf
(
"ERROR : %s endpoint request %d "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment