Message ID | 20220905152659.4152483-3-weiyongjun@huaweicloud.com |
---|---|
State | New |
Headers | show |
Series | [1/3] leds: cr0014114: silent no spi_device_id warning | expand |
diff --git a/drivers/leds/leds-spi-byte.c b/drivers/leds/leds-spi-byte.c index 2bc5c99daf51..9d23dc9e7639 100644 --- a/drivers/leds/leds-spi-byte.c +++ b/drivers/leds/leds-spi-byte.c @@ -137,9 +137,16 @@ static void spi_byte_remove(struct spi_device *spi) mutex_destroy(&led->mutex); } +static const struct spi_device_id spi_byte_spi_ids[] = { + { "acb-spi-led", (kernel_ulong_t)&ubnt_acb_spi_led_cdef }, + { }, +}; +MODULE_DEVICE_TABLE(spi, spi_byte_spi_ids); + static struct spi_driver spi_byte_driver = { .probe = spi_byte_probe, .remove = spi_byte_remove, + .id_table = spi_byte_spi_ids, .driver = { .name = KBUILD_MODNAME, .of_match_table = spi_byte_dt_ids,