mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 16:45:25 +07:00
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 <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
05e37b626f
commit
f16323fdbd
@ -17,6 +17,7 @@
|
||||
*/
|
||||
#ifndef RENESAS_USB_H
|
||||
#define RENESAS_USB_H
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/usb/ch9.h>
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user