summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-06-07 16:09:05 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 14:22:56 +0100
commit02f8efbe12b554028976eec1970b53cf1ab9c8d3 (patch)
treeea554ba58e0e66b5c90537adde49e33d5c260e15 /drivers/spi
parentf764986d38a6bfa5d58e4704aae7d30bbedc00a9 (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> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit de3965ec20c0df8c0c2324b8809667c17782b63d) (cherry picked from commit 49f0b58dc61da3c9247700a28ca10d243494a0a7)
Diffstat (limited to 'drivers/spi')
-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 2e05046f866b..bcc0a7010a3d 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -696,6 +696,7 @@ static struct class *spidev_class;
static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "rohm,dh2228fv" },
{ .compatible = "lineartechnology,ltc2488" },
+ { .compatible = "toradex,evalspi" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);