summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2018-03-02 11:20:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-09 09:46:18 -0800
commitcf6e06cddf29722a4e54b9d66df24c381b231600 (patch)
tree527f052a6e57703685bb7d66d744c2704c56adc9 /drivers/usb/core
parentad70f937e9d0bdc580e390db3a047f9e58863b6e (diff)
downloadlinux-stable-cf6e06cddf29722a4e54b9d66df24c381b231600.tar.gz
linux-stable-cf6e06cddf29722a4e54b9d66df24c381b231600.tar.bz2
linux-stable-cf6e06cddf29722a4e54b9d66df24c381b231600.zip
usb: typec: Start using ERR_PTR
In order to allow the USB Type-C Class driver take care of things like muxes and other possible dependencies for the port drivers, returning ERR_PTR instead of NULL from the registration functions in case of failure. The reason for taking over control of the muxes for example is because handling them in the port drivers would be just boilerplate. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
0 files changed, 0 insertions, 0 deletions