Пример #1
0
static bool exynos5_usb_vbus_init(struct platform_device *pdev)
{
#if defined(CONFIG_MFD_MAX77803)
    printk(KERN_DEBUG"%s vbus value is (%d) \n",__func__,max77803_muic_read_vbus());
    if(max77803_muic_read_vbus())return 1;
    else return 0;
#else
    return 1;
#endif
}
Пример #2
0
static bool exynos5_usb_vbus_init(struct platform_device *pdev)
{
#if defined(CONFIG_MFD_MAX77803)
	printk(KERN_DEBUG"%s vbus value is (%d) \n",__func__,max77803_muic_read_vbus());
	if(max77803_muic_read_vbus())return 1;
	else return 0;
#elif defined(CONFIG_MFD_MAX77802)
	printk(KERN_DEBUG"%s current_cable_type (%d) \n",__func__,current_cable_type);
	if(current_cable_type == POWER_SUPPLY_TYPE_USB)return 1;
	else return 0;
#else
	return 1;
#endif
}