diff options
author | Tal Shorer <tal.shorer@gmail.com> | 2016-08-16 12:04:52 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-06 03:47:25 -0400 |
commit | b9454f90c9432e1a70389c26c34e972090efcec6 (patch) | |
tree | 94b271db66cb6dc3895fc1203b759448464de28c /drivers/usb/common | |
parent | 042b0f31b2a87799a9c832f71474c5be3517e139 (diff) |
usb: ulpi: make ops struct constant
None of the core ulpi functions perform any changes to the operations
struct, and logically as a struct that contains function pointers
there's no reason it shouldn't be constant.
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/common')
-rw-r--r-- | drivers/usb/common/ulpi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c index 0439e9638813..d4ff6df859eb 100644 --- a/drivers/usb/common/ulpi.c +++ b/drivers/usb/common/ulpi.c | |||
@@ -202,7 +202,8 @@ static int ulpi_register(struct device *dev, struct ulpi *ulpi) | |||
202 | * Allocates and registers a ULPI device and an interface for it. Called from | 202 | * Allocates and registers a ULPI device and an interface for it. Called from |
203 | * the USB controller that provides the ULPI interface. | 203 | * the USB controller that provides the ULPI interface. |
204 | */ | 204 | */ |
205 | struct ulpi *ulpi_register_interface(struct device *dev, struct ulpi_ops *ops) | 205 | struct ulpi *ulpi_register_interface(struct device *dev, |
206 | const struct ulpi_ops *ops) | ||
206 | { | 207 | { |
207 | struct ulpi *ulpi; | 208 | struct ulpi *ulpi; |
208 | int ret; | 209 | int ret; |