Lines Matching refs:enable_gpios
32 struct gpio_desc *enable_gpios[DSV_OUT_MAX]; member
44 if (priv->enable_gpios[id]) { in rt4801_of_parse_cb()
48 priv->enable_gpios[id] = devm_fwnode_gpiod_get_index(priv->dev, in rt4801_of_parse_cb()
53 if (IS_ERR(priv->enable_gpios[id])) in rt4801_of_parse_cb()
54 priv->enable_gpios[id] = NULL; in rt4801_of_parse_cb()
90 if (!priv->enable_gpios[id]) { in rt4801_enable()
95 gpiod_set_value(priv->enable_gpios[id], 1); in rt4801_enable()
111 if (!priv->enable_gpios[id]) { in rt4801_disable()
116 gpiod_set_value(priv->enable_gpios[id], 0); in rt4801_disable()
198 priv->enable_gpios[i] = devm_gpiod_get_index_optional(&i2c->dev, in rt4801_probe()
202 if (IS_ERR(priv->enable_gpios[i])) { in rt4801_probe()
204 return PTR_ERR(priv->enable_gpios[i]); in rt4801_probe()