]> Git Repo - linux.git/commitdiff
USB: otg.h: Fix the mixup in parameters order.
authorIgor Grinberg <[email protected]>
Thu, 27 May 2010 06:32:13 +0000 (09:32 +0300)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
include/linux/usb/otg.h

index f8302d036a7674e33109bf8fce16d67325d2d17a..54b2c5e48b9d78b8f8e3e7faf4486f0a2edf539e 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;
 }
This page took 0.056111 seconds and 4 git commands to generate.