From: Yoshihiro Shimoda Date: Wed, 13 Dec 2017 06:46:58 +0000 (+0900) Subject: usb: renesas_usbhs: add a new callback for extcon notifier X-Git-Tag: rel_imx_4.19.35_1.1.0~10791^2~46^2~2 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=f16323fdbd40a4062fb6c89d563e26d93854caa0;p=linux.git usb: renesas_usbhs: add a new callback for extcon notifier To set host/peripheral mode by using extcon notifier, this patch adds a new callback as "notifier" in renesas_usbhs_platform_callback. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h index 67102f3d59d4..9482735d4ca5 100644 --- a/include/linux/usb/renesas_usbhs.h +++ b/include/linux/usb/renesas_usbhs.h @@ -17,6 +17,7 @@ */ #ifndef RENESAS_USB_H #define RENESAS_USB_H +#include #include #include @@ -98,6 +99,13 @@ struct renesas_usbhs_platform_callback { * VBUS control is needed for Host */ int (*set_vbus)(struct platform_device *pdev, int enable); + + /* + * option: + * extcon notifier to set host/peripheral mode. + */ + int (*notifier)(struct notifier_block *nb, unsigned long event, + void *data); }; /*