linux/drivers/usb/typec
Heikki Krogerus cf6e06cddf 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>
2018-03-09 09:46:18 -08:00
..
fusb302 USB: typec: Re-use DEFINE_SHOW_ATTRIBUTE() macro 2018-03-09 09:31:26 -08:00
ucsi usb: typec: Start using ERR_PTR 2018-03-09 09:46:18 -08:00
Kconfig usb: add user selectable option for the whole USB Type-C Support 2017-11-28 15:15:01 +01:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00
tcpm.c usb: typec: Start using ERR_PTR 2018-03-09 09:46:18 -08:00
tps6598x.c usb: typec: Start using ERR_PTR 2018-03-09 09:46:18 -08:00
typec_wcove.c usb: typec: wcove: fix the sink capabilities 2017-12-12 13:16:07 +01:00
typec.c usb: typec: Start using ERR_PTR 2018-03-09 09:46:18 -08:00