Lines Matching defs:spi
15 * - "ubnt,acb-spi-led": Microcontroller (SONiX 8F26E611LA) based device used
34 #include <linux/spi/spi.h>
47 struct spi_device *spi;
59 { .compatible = "ubnt,acb-spi-led", .data = &ubnt_acb_spi_led_cdef },
75 ret = spi_write(led->spi, &value, sizeof(value));
81 static int spi_byte_probe(struct spi_device *spi)
84 struct device *dev = &spi->dev;
86 const char *name = "leds-spi-byte::";
102 led->spi = spi;
123 ret = devm_led_classdev_register(&spi->dev, &led->ldev);
128 spi_set_drvdata(spi, led);
133 static void spi_byte_remove(struct spi_device *spi)
135 struct spi_byte_led *led = spi_get_drvdata(spi);
154 MODULE_ALIAS("spi:leds-spi-byte");