Skip to content

Commit

Permalink
USB: otg.h: Fix the mixup in parameters order.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Igor Grinberg authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent cd62ace commit 6e1c3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/usb/otg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6e1c3b4

Please sign in to comment.