Searched refs:tosa_bat_bu (Results 1 – 1 of 1) sorted by relevance
292 static struct tosa_bat tosa_bat_bu = { variable361 tosa_bat_bu.gpiod_bat = devm_gpiod_get(dev, "backup battery", GPIOD_OUT_LOW); in tosa_bat_probe()362 if (IS_ERR(tosa_bat_bu.gpiod_bat)) in tosa_bat_probe()363 return dev_err_probe(dev, PTR_ERR(tosa_bat_bu.gpiod_bat), in tosa_bat_probe()431 bu_psy_cfg.drv_data = &tosa_bat_bu; in tosa_bat_probe()432 tosa_bat_bu.psy = power_supply_register(dev, &tosa_bat_bu_desc, in tosa_bat_probe()434 if (IS_ERR(tosa_bat_bu.psy)) { in tosa_bat_probe()435 ret = PTR_ERR(tosa_bat_bu.psy); in tosa_bat_probe()466 power_supply_unregister(tosa_bat_bu.psy); in tosa_bat_probe()485 power_supply_unregister(tosa_bat_bu.psy); in tosa_bat_remove()