Beispiel #1
0
static int cable_status_handler_func(struct notifier_block *nfb,
		unsigned long action, void *param)
{
	u32 ctl = (u32)action;
	pr_info("TPS65200 Switch charger set control%d\n", ctl);
	tps_set_charger_ctrl(ctl);

	return NOTIFY_OK;
}
Beispiel #2
0
static void tps65200_work_func(struct work_struct *work)
{
       tps_set_charger_ctrl(CHECK_CHG);
       tps65200_set_check_alarm();
}