summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-usbc-cros-ec.c
Commit message (Collapse)AuthorAgeFilesLines
* extcon: cros-ec: Fix a potential NULL pointer dereferenceChristophe JAILLET2017-08-071-0/+2
| | | | | | | | | Return -ENOMEM in case of memory allocation failure. This avoids a NULL pointer dereference. Fixes: c69831666109 ("extcon: cros-ec: Add extcon-cros-ec driver to support display out") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
* extcon: cros-ec: Add extcon-cros-ec driver to support display outBenson Leung2017-07-171-0/+415
This is the driver for the USB Type C cable detection mechanism built into the ChromeOS Embedded Controller on systems that have USB Type-C ports. At present, this allows for the presence of display out, but in future, it may also be used to notify host and device type cables and the presence of power. Signed-off-by: Benson Leung <bleung@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: Chanwoo Choi <cw00.chio@samsung.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
OpenPOWER on IntegriCloud