Browse Source

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>
Igor Grinberg 15 years ago
parent
commit
6e1c3b467f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/linux/usb/otg.h

+ 2 - 2
include/linux/usb/otg.h

@@ -146,10 +146,10 @@ static inline int otg_io_read(struct otg_transceiver *otg, u32 reg)
 	return -EINVAL;
 	return -EINVAL;
 }
 }
 
 
-static inline int otg_io_write(struct otg_transceiver *otg, u32 reg, u32 val)
+static inline int otg_io_write(struct otg_transceiver *otg, u32 val, u32 reg)
 {
 {
 	if (otg->io_ops && otg->io_ops->write)
 	if (otg->io_ops && otg->io_ops->write)
-		return otg->io_ops->write(otg, reg, val);
+		return otg->io_ops->write(otg, val, reg);
 
 
 	return -EINVAL;
 	return -EINVAL;
 }
 }