Skip to content

Commit

Permalink
drv-spi-spidev-remove-warnings(:1)
Browse files Browse the repository at this point in the history
Original-Subject: drv:spi:spidev remove warnings
None
X-Armbian: Patch-File: drv-spi-spidev-remove-warnings
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: drv:spi:spidev remove warnings
  • Loading branch information
The-going authored and Armbian AutoPatcher committed Feb 2, 2022
1 parent 22c5813 commit a3cb6aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ static const struct file_operations spidev_fops = {
static struct class *spidev_class;

static const struct spi_device_id spidev_spi_ids[] = {
{ .name = "spi-dev" },
{ .name = "dh2228fv" },
{ .name = "ltc2488" },
{ .name = "sx1301" },
Expand All @@ -720,6 +721,7 @@ static int spidev_of_check(struct device *dev)
}

static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "armbian,spi-dev", .data = &spidev_of_check },
{ .compatible = "rohm,dh2228fv", .data = &spidev_of_check },
{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
Expand Down

0 comments on commit a3cb6aa

Please sign in to comment.