summaryrefslogtreecommitdiff
path: root/include/linux/smb349-charger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/smb349-charger.h')
-rw-r--r--include/linux/smb349-charger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/smb349-charger.h b/include/linux/smb349-charger.h
index e83a678d9958..311b2f4bb087 100644
--- a/include/linux/smb349-charger.h
+++ b/include/linux/smb349-charger.h
@@ -50,10 +50,12 @@ struct smb349_charger {
};
int smb349_battery_online(void);
+typedef void (*callback_t)(enum usb_otg_state otg_state, void *args);
/*
* Register callback function for the client.
* Used by fuel-gauge driver to get battery charging properties.
*/
extern int register_callback(charging_callback_t cb, void *args);
+extern int register_otg_callback(callback_t cb, void *args);
#endif /*__LINUX_SMB349_CHARGER_H */