Skip to content
Snippets Groups Projects
Commit 28be58da authored by Christopher Obbard's avatar Christopher Obbard
Browse files

drivers: leds: apa102c: Add id_table

parent a801addf
No related branches found
No related tags found
No related merge requests found
Pipeline #60881 passed
......@@ -287,6 +287,12 @@ static const struct of_device_id apa102c_dt_ids[] = {
MODULE_DEVICE_TABLE(of, apa102c_dt_ids);
static const struct spi_device_id apa102c_spi_ids[] = {
{ .name = "apa102c", },
{},
};
MODULE_DEVICE_TABLE(spi, apa102c_spi_ids);
static struct spi_driver apa102c_driver = {
.probe = apa102c_probe,
.remove = apa102c_remove,
......@@ -294,6 +300,7 @@ static struct spi_driver apa102c_driver = {
.name = KBUILD_MODNAME,
.of_match_table = apa102c_dt_ids,
},
.id_table = apa102c_spi_ids,
};
module_spi_driver(apa102c_driver);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment