usb: musb: Add function pointers for IO access functions
authorTony Lindgren <tony@atomide.com>
Mon, 24 Nov 2014 19:04:59 +0000 (11:04 -0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 25 Nov 2014 14:47:05 +0000 (08:47 -0600)
commit5450ac88dcf09b258d0404b45316583806799ef4
treeb070badfee70901d4c8267e1bc04f3d3131e77ab
parentb20f3f9e8e537ee25bfb86940903cba4b5abbde6
usb: musb: Add function pointers for IO access functions

MUSB currently breaks badly if we try to build in support
for multiple platforms. This also happens if done as loadable
modules, which is not nice for distros.

Let's fix the issue by adding new struct musb_io for the IO
access functions that the platform code can populate. Note
that we don't want to use the current ops as that's really
platform_data and and set as a const.

This should allow eventually adding function pointers also
for the DMA code to struct musb_io, but that's a whole
different set of patches. For now, let's just fix the PIO
access.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_io.h
This page took 0.027339 seconds and 5 git commands to generate.