aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/penwell_otg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb/penwell_otg.h')
-rw-r--r--include/linux/usb/penwell_otg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/usb/penwell_otg.h b/include/linux/usb/penwell_otg.h
index d5cefcf52e9..77776caa87a 100644
--- a/include/linux/usb/penwell_otg.h
+++ b/include/linux/usb/penwell_otg.h
@@ -304,6 +304,11 @@ struct penwell_otg {
struct notifier_block iotg_notifier;
struct adp_status adp;
+
+ spinlock_t charger_lock;
+ struct otg_bc_cap charging_cap;
+ int (*bc_callback)(void *arg, int event, struct otg_bc_cap *cap);
+ void *bc_arg;
};
static inline
@@ -312,4 +317,9 @@ struct penwell_otg *iotg_to_penwell(struct intel_mid_otg_xceiv *iotg)
return container_of(iotg, struct penwell_otg, iotg);
}
+extern int penwell_otg_query_charging_cap(struct otg_bc_cap *cap);
+extern void *penwell_otg_register_bc_callback(
+ int (*cb)(void *, int, struct otg_bc_cap *), void *arg);
+extern int penwell_otg_unregister_bc_callback(void *handler);
+
#endif /* __PENWELL_OTG_H__ */