Lines Matching defs:mux
15 #include <linux/mux/driver.h>
23 static int mux_gpio_set(struct mux_control *mux, int state)
25 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip);
43 { .compatible = "gpio-mux", },
57 pins = gpiod_count(dev, "mux");
68 mux_gpio->gpios = devm_gpiod_get_array(dev, "mux", GPIOD_OUT_LOW);
73 mux_chip->mux->states = BIT(pins);
77 if (idle_state < 0 || idle_state >= mux_chip->mux->states) {
82 mux_chip->mux->idle_state = idle_state;
89 dev_info(dev, "%u-way mux-controller registered\n",
90 mux_chip->mux->states);
97 .name = "gpio-mux",