]> git.openfabrics.org - ~emulex/infiniband.git/commit
USB: gadget: f_uac2: Fix broken prm to uac2 mapping
authorJassi Brar <jaswinder.singh@linaro.org>
Thu, 30 May 2013 12:53:33 +0000 (18:23 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Jun 2013 14:10:23 +0000 (17:10 +0300)
commiteb127cb519d73c0d0e8089dcbde8c94dc1fc7e20
tree8a8d8ffd16f23f2e636e0b122c72c02b4bb58979
parentf37d49ad6e3d351fcf3cd042953ff273b6cd47e0
USB: gadget: f_uac2: Fix broken prm to uac2 mapping

prm_to_uac2() is broken because it tests against pointer it itself
mapped onto, which will never be different.
Fix the mapping by adding pointer to parent chip in each rtd param
and removing the prm_to_uac2().

Reported-by: Julien Rouviere <jrouviere@qualistream.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_uac2.c