diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2010-05-27 02:32:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:34 -0400 |
commit | 6e1c3b467ffd9d6eb725dda544f6fd10e471ea71 (patch) | |
tree | 6c815a4e5980bf91cb564f36ae085db14defa4c4 /include/linux/usb | |
parent | cd62aced31dee9a9a8e63da7bd564911891b3665 (diff) |
USB: otg.h: Fix the mixup in parameters order.
otg_io_write() function does not follow the declaration of
struct otg_io_access_ops.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-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 | } |