Lines Matching refs:spi
39 struct spi_device *spi; member
178 return spi_sync(lcd->spi, &msg); in ams369fg06_spi_write_byte()
444 static int ams369fg06_probe(struct spi_device *spi) in ams369fg06_probe() argument
452 lcd = devm_kzalloc(&spi->dev, sizeof(struct ams369fg06), GFP_KERNEL); in ams369fg06_probe()
457 spi->bits_per_word = 16; in ams369fg06_probe()
459 ret = spi_setup(spi); in ams369fg06_probe()
461 dev_err(&spi->dev, "spi setup failed.\n"); in ams369fg06_probe()
465 lcd->spi = spi; in ams369fg06_probe()
466 lcd->dev = &spi->dev; in ams369fg06_probe()
468 lcd->lcd_pd = dev_get_platdata(&spi->dev); in ams369fg06_probe()
470 dev_err(&spi->dev, "platform data is NULL\n"); in ams369fg06_probe()
474 ld = devm_lcd_device_register(&spi->dev, "ams369fg06", &spi->dev, lcd, in ams369fg06_probe()
485 bd = devm_backlight_device_register(&spi->dev, "ams369fg06-bl", in ams369fg06_probe()
486 &spi->dev, lcd, in ams369fg06_probe()
507 spi_set_drvdata(spi, lcd); in ams369fg06_probe()
509 dev_info(&spi->dev, "ams369fg06 panel driver has been probed.\n"); in ams369fg06_probe()
514 static int ams369fg06_remove(struct spi_device *spi) in ams369fg06_remove() argument
516 struct ams369fg06 *lcd = spi_get_drvdata(spi); in ams369fg06_remove()
549 static void ams369fg06_shutdown(struct spi_device *spi) in ams369fg06_shutdown() argument
551 struct ams369fg06 *lcd = spi_get_drvdata(spi); in ams369fg06_shutdown()