コード例 #1
0
static void host_notifier_booster(int enable)
{
	pr_info("host_notifier: booster %s\n", enable ? "ON" : "OFF");

	ninfo.pdata->booster(2, enable);

	if (enable)
		start_usbhostd_thread();
	else
		stop_usbhostd_thread();
}
コード例 #2
0
ファイル: host_notifier.c プロジェクト: AndreiLux/Perseus-S3
static void host_notifier_booster(int enable)
{
	pr_info("host_notifier: booster %s\n", enable ? "ON" : "OFF");
#ifdef CONFIG_MACH_P4NOTE
	if (enable)
		host_notifier_enable_irq();
	else
		host_notifier_disable_irq();
#endif
	ninfo.pdata->booster(enable);

	if (ninfo.pdata->thread_enable) {
		if (enable)
			start_usbhostd_thread();
		else
			stop_usbhostd_thread();
	}
}