Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-mpc52xx.c93 struct gpio_desc **gpio_cs; member
390 struct gpio_desc *gpio_cs; in mpc52xx_spi_probe() local
447 sizeof(*ms->gpio_cs), in mpc52xx_spi_probe()
449 if (!ms->gpio_cs) { in mpc52xx_spi_probe()
455 gpio_cs = gpiod_get_index(&op->dev, in mpc52xx_spi_probe()
457 rc = PTR_ERR_OR_ZERO(gpio_cs); in mpc52xx_spi_probe()
465 ms->gpio_cs[i] = gpio_cs; in mpc52xx_spi_probe()
505 gpiod_put(ms->gpio_cs[i]); in mpc52xx_spi_probe()
507 kfree(ms->gpio_cs); in mpc52xx_spi_probe()
526 gpiod_put(ms->gpio_cs[i]); in mpc52xx_spi_remove()
[all …]
/openbmc/linux/drivers/phy/ti/
H A Dphy-tusb1210.c58 struct gpio_desc *gpio_cs; member
103 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_power_on()
118 gpiod_set_value_cansleep(tusb->gpio_cs, 0); in tusb1210_power_off()
506 tusb->gpio_cs = devm_gpiod_get_optional(&ulpi->dev, "cs", in tusb1210_probe()
508 if (IS_ERR(tusb->gpio_cs)) in tusb1210_probe()
509 return PTR_ERR(tusb->gpio_cs); in tusb1210_probe()
511 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_probe()