Lines Matching refs:pg
101 struct gpio_desc *pg; member
447 if (bq->pg) in bq24257_get_chip_state()
448 state->power_good = !gpiod_get_value_cansleep(bq->pg); in bq24257_get_chip_state()
876 bq->pg = devm_gpiod_get_optional(bq->dev, BQ24257_PG_GPIO, GPIOD_IN); in bq24257_pg_gpio_probe()
878 if (PTR_ERR(bq->pg) == -EPROBE_DEFER) { in bq24257_pg_gpio_probe()
881 } else if (IS_ERR(bq->pg)) { in bq24257_pg_gpio_probe()
883 bq->pg = NULL; in bq24257_pg_gpio_probe()
887 if (bq->pg) in bq24257_pg_gpio_probe()
888 dev_dbg(bq->dev, "probed PG pin = %d\n", desc_to_gpio(bq->pg)); in bq24257_pg_gpio_probe()
1046 if (PTR_ERR(bq->pg) == -EPROBE_DEFER) in bq24257_probe()
1047 return PTR_ERR(bq->pg); in bq24257_probe()
1048 else if (!bq->pg) in bq24257_probe()