usb: ulpi: add new api functions, {read|write}_dev()
authorTal Shorer <tal.shorer@gmail.com>
Tue, 16 Aug 2016 16:04:47 +0000 (19:04 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 6 Sep 2016 07:47:23 +0000 (10:47 +0300)
commit6691402313ddda232e6a401af8841b5fe676a62f
treecf8876b7284942a31323846ace977b79f0ab0f26
parent51b0ce387b43ba8ed532e6f9f215d891e1899e0a
usb: ulpi: add new api functions, {read|write}_dev()

Add these two new api callbacks to struct ulpi_ops. These are different
than read, write in that they pass the parent device directly instead
of via the ops argument.
They are intended to replace the old api functions.

If the new api callbacks are missing, revert to calling the old ones
as before.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/common/ulpi.c
include/linux/ulpi/interface.h