usb: ehci-omap: add helpers for checking port mode
authorAnand Gadiyar <gadiyar@ti.com>
Sun, 21 Nov 2010 17:53:41 +0000 (23:23 +0530)
committerAnand Gadiyar <gadiyar@ti.com>
Tue, 30 Nov 2010 21:04:53 +0000 (02:34 +0530)
commita42ccdc14de388a35ad0e8057543369351395eb9
tree069de670eb0b2ea524a4b7ccbe4128a9009ec42d
parentc5dff5545c97ab33bdb2a529a2375966ceb0700c
usb: ehci-omap: add helpers for checking port mode

Introduce helper functions to test port mode. These checks are
performed in several places in the driver, and these helpers
improve readability.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
drivers/usb/host/ehci-omap.c