usb: gadget: gr_udc: Use of_property_read_u32_index to access arrays
authorAndreas Larsson <andreas@gaisler.com>
Thu, 27 Mar 2014 15:15:56 +0000 (16:15 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:27 +0000 (14:07 -0500)
commit73e1c093e83a421d24d54a94cb87031e7c222cd1
tree6631b028c1d2906e8a734183ec90ba6edc2a7f8a
parent196800da39a142e2952ad5e1cb58a84838956764
usb: gadget: gr_udc: Use of_property_read_u32_index to access arrays

Use an appropriate accessor function for property arrays to make the code nicer
and make the code correct if it would ever run on little endian architectures.
Suggested by Mark Rutland.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/gr_udc.c