Ejemplo n.º 1
0
static void vbus_work_func(struct work_struct *work)
{
	int vbus = msm_chg_usb_chg_is_battery_valid_proc();
	printk("%s:  new vbus = %d\n", __func__, vbus);
	notify_cable_status(vbus);
}
Ejemplo n.º 2
0
// called from DEX intrrupt
void notify_vbus_change_intr(void)
{
	if (!is_battery_initialized)
		return;
	notify_cable_status(get_vbus_state());
}