From: Igor Grinberg Date: Thu, 27 May 2010 06:32:13 +0000 (+0300) Subject: USB: otg.h: Fix the mixup in parameters order. X-Git-Tag: v2.6.36-rc1~293^2~132 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6e1c3b467ffd9d6eb725dda544f6fd10e471ea71;p=~shefty%2Frdma-dev.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h index f8302d036a7..54b2c5e48b9 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) 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; }