summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-06-07 16:09:05 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2016-06-24 14:50:18 +0200
commitde3965ec20c0df8c0c2324b8809667c17782b63d (patch)
treea93e8403691d429b3bfcb134731c74f7691bfa65
parent9b84cddeb66f333789e6642992c5793c1f67ea79 (diff)
spi: spidev: invent a new hw device to work around spidev warning
Upstream discussions would like to get rid of spidev in device trees since it is a Linux software artifact. However, we would like to provide a spidev interface for our standard SPI port available to tinker with on our Toradex Colibri Evaluation Board. Invent a new device called evalspi... Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--drivers/spi/spidev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 8fab566e0f0b..aeb689eb4b7a 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -707,6 +707,7 @@ static struct class *spidev_class;
#ifdef CONFIG_OF
static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "rohm,dh2228fv" },
+ { .compatible = "toradex,evalspi" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);