Lines Matching defs:mux
13 #include <linux/mux/driver.h>
22 static int mux_gpio_set(struct mux_control *mux, int state)
24 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip);
41 { .compatible = "gpio-mux", },
55 pins = gpiod_count(dev, "mux");
66 mux_gpio->gpios = devm_gpiod_get_array(dev, "mux", GPIOD_OUT_LOW);
74 mux_chip->mux->states = 1 << pins;
78 if (idle_state < 0 || idle_state >= mux_chip->mux->states) {
83 mux_chip->mux->idle_state = idle_state;
90 dev_info(dev, "%u-way mux-controller registered\n",
91 mux_chip->mux->states);
98 .name = "gpio-mux",