Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-xcomm.c34 struct spi_xcomm { struct
50 struct spi_xcomm *spi_xcomm = gpiochip_get_data(chip); in spi_xcomm_gpio_set_value() argument
56 i2c_master_send(spi_xcomm->i2c, buf, 2); in spi_xcomm_gpio_set_value()
65 static int spi_xcomm_gpio_add(struct spi_xcomm *spi_xcomm) in spi_xcomm_gpio_add() argument
67 struct device *dev = &spi_xcomm->i2c->dev; in spi_xcomm_gpio_add()
72 spi_xcomm->gc.get_direction = spi_xcomm_gpio_get_direction; in spi_xcomm_gpio_add()
73 spi_xcomm->gc.set = spi_xcomm_gpio_set_value; in spi_xcomm_gpio_add()
74 spi_xcomm->gc.can_sleep = 1; in spi_xcomm_gpio_add()
75 spi_xcomm->gc.base = -1; in spi_xcomm_gpio_add()
76 spi_xcomm->gc.ngpio = 1; in spi_xcomm_gpio_add()
[all …]