Searched refs:charge_finished (Results 1 – 2 of 2) sorted by relevance
29 struct gpio_desc *charge_finished; member129 static int charge_finished(struct s3c_adc_bat *bat) in charge_finished() function131 return gpiod_get_value(bat->charge_finished); in charge_finished()166 (!bat->charge_finished || in s3c_adc_bat_get_property()167 !charge_finished(bat))) { in s3c_adc_bat_get_property()203 if (!bat->charge_finished) in s3c_adc_bat_get_property()262 if (bat->charge_finished && is_plugged) { in s3c_adc_bat_work()263 is_charged = charge_finished(&main_bat); in s3c_adc_bat_work()312 main_bat.charge_finished = gpiod; in s3c_adc_bat_probe()330 backup_bat.charge_finished = gpiod; in s3c_adc_bat_probe()[all …]
55 struct gpio_desc *charge_finished; member95 if (!adc_bat->charge_finished) in gab_charge_finished()97 return gpiod_get_value(adc_bat->charge_finished); in gab_charge_finished()330 adc_bat->charge_finished = devm_gpiod_get_optional(&pdev->dev, in gab_probe()332 if (adc_bat->charge_finished) { in gab_probe()335 irq = gpiod_to_irq(adc_bat->charge_finished); in gab_probe()370 if (adc_bat->charge_finished) in gab_remove()371 free_irq(gpiod_to_irq(adc_bat->charge_finished), adc_bat); in gab_remove()