Lines Matching defs:spi
16 #include <linux/spi/spi.h>
34 struct spi_device *spi;
173 return spi_sync(lcd->spi, &msg);
439 static int ams369fg06_probe(struct spi_device *spi)
447 lcd = devm_kzalloc(&spi->dev, sizeof(struct ams369fg06), GFP_KERNEL);
452 spi->bits_per_word = 16;
454 ret = spi_setup(spi);
456 dev_err(&spi->dev, "spi setup failed.\n");
460 lcd->spi = spi;
461 lcd->dev = &spi->dev;
463 lcd->lcd_pd = dev_get_platdata(&spi->dev);
465 dev_err(&spi->dev, "platform data is NULL\n");
469 ld = devm_lcd_device_register(&spi->dev, "ams369fg06", &spi->dev, lcd,
480 bd = devm_backlight_device_register(&spi->dev, "ams369fg06-bl",
481 &spi->dev, lcd,
502 spi_set_drvdata(spi, lcd);
504 dev_info(&spi->dev, "ams369fg06 panel driver has been probed.\n");
509 static void ams369fg06_remove(struct spi_device *spi)
511 struct ams369fg06 *lcd = spi_get_drvdata(spi);
543 static void ams369fg06_shutdown(struct spi_device *spi)
545 struct ams369fg06 *lcd = spi_get_drvdata(spi);