aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorTal Shorer <tal.shorer@gmail.com>2016-08-16 12:04:50 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-09-06 03:47:24 -0400
commite6f74849784ccf275226d5d3ddfb96c71fa90383 (patch)
treea7f2ba33065d9479ace41b6efb3af54f875ea557 /drivers/usb
parent5c42f38795645834a7c23998bd74d35a37bff078 (diff)
usb: ulpi: rename operations {read|write}_dev to simply {read|write}
With the removal of the old {read|write} operations, we can now safely rename the new api operations {read|write}_dev to use the shorter and clearer names {read|write}, respectively. 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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/common/ulpi.c4
-rw-r--r--drivers/usb/dwc3/ulpi.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c
index 43142c3d94d7..fdaed7c26c12 100644
--- a/drivers/usb/common/ulpi.c
+++ b/drivers/usb/common/ulpi.c
@@ -21,13 +21,13 @@
21 21
22int ulpi_read(struct ulpi *ulpi, u8 addr) 22int ulpi_read(struct ulpi *ulpi, u8 addr)
23{ 23{
24 return ulpi->ops->read_dev(ulpi->dev.parent, addr); 24 return ulpi->ops->read(ulpi->dev.parent, addr);
25} 25}
26EXPORT_SYMBOL_GPL(ulpi_read); 26EXPORT_SYMBOL_GPL(ulpi_read);
27 27
28int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val) 28int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val)
29{ 29{
30 return ulpi->ops->write_dev(ulpi->dev.parent, addr, val); 30 return ulpi->ops->write(ulpi->dev.parent, addr, val);
31} 31}
32EXPORT_SYMBOL_GPL(ulpi_write); 32EXPORT_SYMBOL_GPL(ulpi_write);
33 33
diff --git a/drivers/usb/dwc3/ulpi.c b/drivers/usb/dwc3/ulpi.c
index 94eeb7a42dbd..51ac939b2dfc 100644
--- a/drivers/usb/dwc3/ulpi.c
+++ b/drivers/usb/dwc3/ulpi.c
@@ -66,8 +66,8 @@ static int dwc3_ulpi_write(struct device *dev, u8 addr, u8 val)
66} 66}
67 67
68static struct ulpi_ops dwc3_ulpi_ops = { 68static struct ulpi_ops dwc3_ulpi_ops = {
69 .read_dev = dwc3_ulpi_read, 69 .read = dwc3_ulpi_read,
70 .write_dev = dwc3_ulpi_write, 70 .write = dwc3_ulpi_write,
71}; 71};
72 72
73int dwc3_ulpi_init(struct dwc3 *dwc) 73int dwc3_ulpi_init(struct dwc3 *dwc)