Searched refs:g_spi (Results 1 – 1 of 1) sorted by relevance
51 static struct spi_device *g_spi; variable126 if (!g_spi) in rt5677_spi_read()130 dev_err(&g_spi->dev, "Bad read align 0x%x(%zu)\n", addr, len); in rt5677_spi_read()154 status |= spi_sync(g_spi, &m); in rt5677_spi_read()180 if (!g_spi) in rt5677_spi_write()184 dev_err(&g_spi->dev, "Bad write align 0x%x(%zu)\n", addr, len); in rt5677_spi_write()210 status |= spi_sync(g_spi, &m); in rt5677_spi_write()225 g_spi = spi; in rt5677_spi_probe()