diff options
author | Tal Shorer <tal.shorer@gmail.com> | 2016-08-16 18:04:53 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-06 09:47:26 +0200 |
commit | 073c47aca7b7ccc6dd3fb21a3ee8134e30d8b327 (patch) | |
tree | 05f5cc229dcd611bd32b9f2bce0f1b48c0619cba /drivers/usb/dwc3/ulpi.c | |
parent | usb: ulpi: make ops struct constant (diff) | |
download | linux-073c47aca7b7ccc6dd3fb21a3ee8134e30d8b327.tar.xz linux-073c47aca7b7ccc6dd3fb21a3ee8134e30d8b327.zip |
usb: dwc3: ulpi: make dwc3_ulpi_ops constant
ulpi_register_interface() accepts a const struct ulpi_ops and dwc3
doesn't perform any changes to this struct at runtime, so there's no
reason it shouldn't be constant.
Reviewed-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/dwc3/ulpi.c')
-rw-r--r-- | drivers/usb/dwc3/ulpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ulpi.c b/drivers/usb/dwc3/ulpi.c index 51ac939b2dfc..bd86f84f3790 100644 --- a/drivers/usb/dwc3/ulpi.c +++ b/drivers/usb/dwc3/ulpi.c @@ -65,7 +65,7 @@ static int dwc3_ulpi_write(struct device *dev, u8 addr, u8 val) return dwc3_ulpi_busyloop(dwc); } -static struct ulpi_ops dwc3_ulpi_ops = { +static const struct ulpi_ops dwc3_ulpi_ops = { .read = dwc3_ulpi_read, .write = dwc3_ulpi_write, }; |