]> git.baikalelectronics.ru Git - kernel.git/commit
USB: musb_gadget_ep0: stop abusing musb_gadget_set_halt()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Wed, 18 Nov 2009 19:54:32 +0000 (22:54 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:25 +0000 (11:55 -0800)
commitf5be731cbdce0d580699c17635f0c1b2df87cdcc
treeea4a13b7f5ce2099470ed0d888cabf5cde0004f4
parentde24104544e488f34d37b05317e41bd5a15ecb8a
USB: musb_gadget_ep0: stop abusing musb_gadget_set_halt()

Stop playing with musb->lock and abusing musb_gadget_set_halt() in
the code clearing the endpoint halt feature -- instead, manipulate
the registers directly.

While at it, get rid uf unneeded line breaks and over-indentation in
the code setting the endpoint halt feature.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.h
drivers/usb/musb/musb_gadget_ep0.c