diff options
| -rw-r--r-- | include/linux/usb/otg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h index f8302d036a76..54b2c5e48b9d 100644 --- a/include/linux/usb/otg.h +++ b/include/linux/usb/otg.h | |||
| @@ -146,10 +146,10 @@ static inline int otg_io_read(struct otg_transceiver *otg, u32 reg) | |||
| 146 | return -EINVAL; | 146 | return -EINVAL; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | static inline int otg_io_write(struct otg_transceiver *otg, u32 reg, u32 val) | 149 | static inline int otg_io_write(struct otg_transceiver *otg, u32 val, u32 reg) |
| 150 | { | 150 | { |
| 151 | if (otg->io_ops && otg->io_ops->write) | 151 | if (otg->io_ops && otg->io_ops->write) |
| 152 | return otg->io_ops->write(otg, reg, val); | 152 | return otg->io_ops->write(otg, val, reg); |
| 153 | 153 | ||
| 154 | return -EINVAL; | 154 | return -EINVAL; |
| 155 | } | 155 | } |
