From: Tal Shorer Date: Tue, 16 Aug 2016 16:04:53 +0000 (+0300) Subject: usb: dwc3: ulpi: make dwc3_ulpi_ops constant X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=073c47aca7b7ccc6dd3fb21a3ee8134e30d8b327;p=deliverable%2Flinux.git 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 Signed-off-by: Tal Shorer Signed-off-by: Felipe Balbi --- 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, };