Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 073c47ac authored by Tal Shorer's avatar Tal Shorer Committed by Felipe Balbi
Browse files

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: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarTal Shorer <tal.shorer@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent b9454f90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};