USB: otg.h: Fix the mixup in parameters order.
authorIgor Grinberg <grinberg@compulab.co.il>
Thu, 27 May 2010 06:32:13 +0000 (09:32 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:34 +0000 (14:35 -0700)
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>
include/linux/usb/otg.h

index f8302d0..54b2c5e 100644 (file)
@@ -146,10 +146,10 @@ static inline int otg_io_read(struct otg_transceiver *otg, u32 reg)
        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)
-               return otg->io_ops->write(otg, reg, val);
+               return otg->io_ops->write(otg, val, reg);
 
        return -EINVAL;
 }