Skip to content

Commit a0e7adc

Browse files
ukleineknunojsa
authored andcommitted
spi: spidev: Add spi device-id for adi,swspi
There is a 1:1 correspondance between the entries of spidev_dt_ids[] and spidev_spi_ids[]. So add a spi device-id for "adi,swspi". This fixes the boot warning: SPI driver spidev has no spi_device_id for adi,swspi Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent 2688861 commit a0e7adc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spidev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ static const struct file_operations spidev_fops = {
704704
static struct class *spidev_class;
705705

706706
static const struct spi_device_id spidev_spi_ids[] = {
707+
{ .name = "swspi" },
707708
{ .name = "dh2228fv" },
708709
{ .name = "ltc2488" },
709710
{ .name = "sx1301" },

0 commit comments

Comments
 (0)