Searched refs:cs_gpiod (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/regulator/ |
H A D | slg51000-regulator.c | 43 struct gpio_desc *cs_gpiod; member 442 struct gpio_desc *cs_gpiod; in slg51000_i2c_probe() local 449 cs_gpiod = devm_gpiod_get_optional(dev, "dlg,cs", in slg51000_i2c_probe() 452 if (IS_ERR(cs_gpiod)) in slg51000_i2c_probe() 453 return PTR_ERR(cs_gpiod); in slg51000_i2c_probe() 455 if (cs_gpiod) { in slg51000_i2c_probe() 457 chip->cs_gpiod = cs_gpiod; in slg51000_i2c_probe()
|
/linux/sound/pci/hda/ |
H A D | cs35l41_hda_property.c | 237 struct gpio_desc *cs_gpiod; in generic_dsd_config() local 299 cs_gpiod = gpiod_get_index(physdev, "cs", 0, GPIOD_OUT_LOW); in generic_dsd_config() 300 if (IS_ERR(cs_gpiod)) { in generic_dsd_config() 303 return PTR_ERR(cs_gpiod); in generic_dsd_config() 306 spi_set_csgpiod(spi, 0, cs_gpiod); in generic_dsd_config() 307 cs35l41->cs_gpio = cs_gpiod; in generic_dsd_config() 309 gpiod_set_value_cansleep(cs_gpiod, true); in generic_dsd_config() 310 gpiod_put(cs_gpiod); in generic_dsd_config()
|
/linux/drivers/input/touchscreen/ |
H A D | bu21013_ts.c | 162 struct gpio_desc *cs_gpiod; member 404 gpiod_set_value(ts->cs_gpiod, 0); in bu21013_disable_chip() 498 ts->cs_gpiod = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in bu21013_probe() 499 if (IS_ERR(ts->cs_gpiod)) in bu21013_probe() 500 return dev_err_probe(dev, PTR_ERR(ts->cs_gpiod), "failed to get CS GPIO\n"); in bu21013_probe() 502 gpiod_set_consumer_name(ts->cs_gpiod, "BU21013 CS"); in bu21013_probe()
|
/linux/include/linux/spi/ |
H A D | spi.h | 219 struct gpio_desc *cs_gpiod[SPI_CS_CNT_MAX]; /* Chip select gpio desc */ member 302 return spi->cs_gpiod[idx]; in spi_get_csgpiod() 307 spi->cs_gpiod[idx] = csgpiod; in spi_set_csgpiod()
|