projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb36c32
)
usb: bc: fix compile error
author
lyz
<lyz@rock-chips.com>
Wed, 24 Jun 2015 03:15:33 +0000
(11:15 +0800)
committer
lyz
<lyz@rock-chips.com>
Wed, 24 Jun 2015 03:15:37 +0000
(11:15 +0800)
Fix conflicting types for 'rk_bc_detect_notifier_register'
drivers/usb/dwc_otg_310/usbdev_bc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg_310/usbdev_bc.c
b/drivers/usb/dwc_otg_310/usbdev_bc.c
index 612672fba515cafc25f8649527a3466d973c720d..79a08a0a44f92d4bbb0a14a8d67742d638de5349 100755
(executable)
--- a/
drivers/usb/dwc_otg_310/usbdev_bc.c
+++ b/
drivers/usb/dwc_otg_310/usbdev_bc.c
@@
-426,7
+426,7
@@
EXPORT_SYMBOL(dwc_otg_check_dpdm);
static ATOMIC_NOTIFIER_HEAD(rk_bc_notifier);
int rk_bc_detect_notifier_register(struct notifier_block *nb,
-
int
*type)
+
enum bc_port_type
*type)
{
*type = (int)usb_battery_charger_detect(0);
return atomic_notifier_chain_register(&rk_bc_notifier, nb);