Home
last modified time | relevance | path

Searched refs:mux_gpio (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/mux/
H A Dgpio.c19 struct mux_gpio { struct
25 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); in mux_gpio_set() local
31 gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, in mux_gpio_set()
32 mux_gpio->gpios->desc, in mux_gpio_set()
33 mux_gpio->gpios->info, values); in mux_gpio_set()
52 struct mux_gpio *mux_gpio; in mux_gpio_probe() local
61 mux_chip = devm_mux_chip_alloc(dev, 1, sizeof(*mux_gpio)); in mux_gpio_probe()
65 mux_gpio = mux_chip_priv(mux_chip); in mux_gpio_probe()
68 mux_gpio->gpios = devm_gpiod_get_array(dev, "mux", GPIOD_OUT_LOW); in mux_gpio_probe()
69 if (IS_ERR(mux_gpio->gpios)) in mux_gpio_probe()
[all …]
/linux/drivers/fsi/
H A Dfsi-master-aspeed.c492 struct gpio_desc *routing_gpio, *mux_gpio; in tacoma_cabled_fsi_fixup() local
506 mux_gpio = devm_gpiod_get_optional(dev, "fsi-mux", GPIOD_ASIS); in tacoma_cabled_fsi_fixup()
507 if (IS_ERR(mux_gpio)) in tacoma_cabled_fsi_fixup()
508 return PTR_ERR(mux_gpio); in tacoma_cabled_fsi_fixup()
509 if (!mux_gpio) in tacoma_cabled_fsi_fixup()
526 gpiod_direction_output(mux_gpio, 0); in tacoma_cabled_fsi_fixup()
529 gpiod_direction_output(mux_gpio, 1); in tacoma_cabled_fsi_fixup()