Lines Matching defs:spi
10 #include <linux/spi/spi.h>
116 struct spi_device *spi;
145 return spi_sync(ctx->spi, &msg);
356 static int st7789v_probe(struct spi_device *spi)
361 ctx = devm_kzalloc(&spi->dev, sizeof(*ctx), GFP_KERNEL);
365 spi_set_drvdata(spi, ctx);
366 ctx->spi = spi;
368 drm_panel_init(&ctx->panel, &spi->dev, &st7789v_drm_funcs,
371 ctx->power = devm_regulator_get(&spi->dev, "power");
375 ctx->reset = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW);
377 dev_err(&spi->dev, "Couldn't get our reset line\n");
390 static int st7789v_remove(struct spi_device *spi)
392 struct st7789v *ctx = spi_get_drvdata(spi);