usb: musb: core: added helper function for parsing DT
authorPetr Kulhavy <petr@barix.com>
Mon, 21 Nov 2016 14:59:28 +0000 (08:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 16:35:36 +0000 (17:35 +0100)
commit830fc64ca721101d5f360c1b7d09b8037b2b5b0b
treed38244eb5e55ff65bcd00f31f18a6da817ce5e25
parentc92340ab32b29db84d656a873d5761cbbb48dbee
usb: musb: core: added helper function for parsing DT

This adds the function musb_get_mode() to get the DT property "dr_mode"

Signed-off-by: Petr Kulhavy <petr@barix.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Tested-by: David Lechner <david@lechnology.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h