Lines Matching refs:notify_psy
172 struct power_supply *notify_psy; member
808 if (psy != bq->notify_psy) in bq2415x_notifier_call()
1565 bq->notify_psy = power_supply_get_by_phandle(np, "ti,usb-charger-detection"); in bq2415x_probe()
1567 if (IS_ERR(bq->notify_psy)) { in bq2415x_probe()
1570 PTR_ERR(bq->notify_psy)); in bq2415x_probe()
1571 bq->notify_psy = NULL; in bq2415x_probe()
1572 } else if (!bq->notify_psy) { in bq2415x_probe()
1578 bq->notify_psy = power_supply_get_by_name(pdata->notify_device); in bq2415x_probe()
1580 bq->notify_psy = NULL; in bq2415x_probe()
1642 if (bq->notify_psy) { in bq2415x_probe()
1651 bq2415x_notifier_call(&bq->nb, PSY_EVENT_PROP_CHANGED, bq->notify_psy); in bq2415x_probe()
1673 if (bq->notify_psy) in bq2415x_probe()
1674 power_supply_put(bq->notify_psy); in bq2415x_probe()
1691 if (bq->notify_psy) { in bq2415x_remove()
1693 power_supply_put(bq->notify_psy); in bq2415x_remove()