diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-06-07 16:09:05 -0700 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-09-29 13:55:57 -0700 |
commit | 503ad82e197b6a786c1b8ec12a3cd3e612f51337 (patch) | |
tree | 816bcfe2a8565b2fb491303d429582fd17734a0e /drivers | |
parent | 65e1bdfe04b1ec61a3a456971ce7f82349886bfd (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: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spidev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index d0e7dfc647cf..a6786fb526e5 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -695,6 +695,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); |