]> git.karo-electronics.de Git - linux-beck.git/commit
USB: ohci: da8xx: Allow a regulator to handle VBUS
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 23 Nov 2016 18:06:47 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 16:31:35 +0000 (17:31 +0100)
commitc844ff74b04fe83245c908a8c92f0a7620b25c4c
treed690d68ad535aea91c8cb233f41f7ff492f7e876
parentf3c56fb39658a3f81ffe878628109075a023c935
USB: ohci: da8xx: Allow a regulator to handle VBUS

Using a regulator to handle VBUS will eliminate the need for
platform data and callbacks, and make the driver more generic
allowing different types of regulators to handle VBUS.

The regulator equivalents to the platform callbacks are:
    set_power   ->  regulator_enable/regulator_disable
    get_power   ->  regulator_is_enabled
    get_oci     ->  regulator_get_error_flags
    ocic_notify ->  regulator event notification

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-da8xx.c