Searched refs:gpiod (Results 1 – 1 of 1) sorted by relevance
135 struct regulator_gpio_desc *gpiod = &rg->pins_desc[i]; in regulator_gpio_set_voltage() local137 rt_pin_mode(gpiod->pin, PIN_MODE_OUTPUT); in regulator_gpio_set_voltage()138 rt_pin_write(gpiod->pin, gpiod->flags == PIND_OUT_HIGH ? state : !state); in regulator_gpio_set_voltage()218 struct regulator_gpio_desc *gpiod = &rg->pins_desc[i]; in regulator_gpio_probe() local220 gpiod->pin = rt_pin_get_named_pin(dev, RT_NULL, i, RT_NULL, RT_NULL); in regulator_gpio_probe()222 if (gpiod->pin < 0) in regulator_gpio_probe()224 err = gpiod->pin; in regulator_gpio_probe()230 gpiod->flags = PIND_OUT_HIGH; in regulator_gpio_probe()234 gpiod->flags = val ? PIND_OUT_HIGH : PIND_OUT_LOW; in regulator_gpio_probe()237 if (gpiod->flags == PIND_OUT_HIGH) in regulator_gpio_probe()
Completed in 3 milliseconds