From: Felipe Balbi Date: Mon, 29 Sep 2014 20:18:20 +0000 (-0500) Subject: usb: gadget: function: f_obex: fix Interface Descriptor Test X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~17^2~2^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3985f3ab0834edf014ebd19192d9dd77422dea67;p=pandora-kernel.git usb: gadget: function: f_obex: fix Interface Descriptor Test On USB20CV's Interface Descriptor Test, a series of SetInterface/GetInterface requests are issued and gadget driver is required to always return correct alternate setting. In one step of the test, g_serial with f_obex was returning the wrong value (1 instead of 0). In order to fix this, we will now hold currently selected alternate setting inside our struct f_obex and just return that from our ->get_alt() implementation. Note that his also simplifies the code a bit. Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed