]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2dea51c204726aeb96adc019878f5e68dbe4325
tree6631b028c1d2906e8a734183ec90ba6edc2a7f8a
parent7075f8e51575e8ddc98aad84da6a41280011b0dc
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