From 1e54cdcdb6940a58d5e09174410fe0fe28041fa3 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Wed, 22 Feb 2012 11:38:55 +0800 Subject: ENGR00174734-3 usb: change function name for discharge data line In order to reflect the function well, it needs to discharge both dp and dm, so change the function name. Signed-off-by: Peter Chen --- include/linux/fsl_devices.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index e96cca48cbf8..63c4407fc51f 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -124,7 +124,12 @@ struct fsl_usb2_platform_data { void (*wakeup_handler)(struct fsl_usb2_platform_data *); void (*hsic_post_ops)(void); void (*hsic_device_connected)(void); - void (*gadget_discharge_dp) (bool); + /* + * Some platforms, like i.mx6x needs to discharge dp/dm at device mode + * or there is wakeup interrupt caused by dp/dm change when the cable + * is disconnected with Host. + */ + void (*dr_discharge_line) (bool); struct fsl_usb2_wakeup_platform_data *wakeup_pdata; struct platform_device *pdev; -- cgit v1.2.3