Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Igor Grinberg and committed by
Greg Kroah-Hartman
6e1c3b46 cd62aced

+2 -2
+2 -2
include/linux/usb/otg.h
··· 146 146 return -EINVAL; 147 147 } 148 148 149 - static inline int otg_io_write(struct otg_transceiver *otg, u32 reg, u32 val) 149 + static inline int otg_io_write(struct otg_transceiver *otg, u32 val, u32 reg) 150 150 { 151 151 if (otg->io_ops && otg->io_ops->write) 152 - return otg->io_ops->write(otg, reg, val); 152 + return otg->io_ops->write(otg, val, reg); 153 153 154 154 return -EINVAL; 155 155 }