Lines Matching refs:gpiod_bat
35 struct gpio_desc *gpiod_bat; member
54 if (!bat->gpiod_bat || bat->adc_bat < 0) in tosa_read_bat()
58 gpiod_set_value(bat->gpiod_bat, 1); in tosa_read_bat()
62 gpiod_set_value(bat->gpiod_bat, 0); in tosa_read_bat()
259 .gpiod_bat = NULL,
281 .gpiod_bat = NULL,
302 .gpiod_bat = NULL,
353 tosa_bat_main.gpiod_bat = devm_gpiod_get(dev, "main battery", GPIOD_OUT_LOW); in tosa_bat_probe()
354 if (IS_ERR(tosa_bat_main.gpiod_bat)) in tosa_bat_probe()
355 return dev_err_probe(dev, PTR_ERR(tosa_bat_main.gpiod_bat), in tosa_bat_probe()
357 tosa_bat_jacket.gpiod_bat = devm_gpiod_get(dev, "jacket battery", GPIOD_OUT_LOW); in tosa_bat_probe()
358 if (IS_ERR(tosa_bat_jacket.gpiod_bat)) in tosa_bat_probe()
359 return dev_err_probe(dev, PTR_ERR(tosa_bat_jacket.gpiod_bat), in tosa_bat_probe()
361 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()