Lines Matching refs:mux_chip
49 struct mux_chip *mux_chip;
59 mux_chip = devm_mux_chip_alloc(dev, 1, sizeof(*mux_gpio));
60 if (IS_ERR(mux_chip))
61 return PTR_ERR(mux_chip);
63 mux_gpio = mux_chip_priv(mux_chip);
64 mux_chip->ops = &mux_gpio_ops;
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;
86 ret = devm_mux_chip_register(dev, mux_chip);
91 mux_chip->mux->states);