110-v6.3-0001-spidev-Add-Silicon-Labs-EM3581-device-compatible.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From f7982c726e02001afc19052fe48f642dfcbc00b2 Mon Sep 17 00:00:00 2001
  2. From: Vincent Tremblay <[email protected]>
  3. Date: Mon, 26 Dec 2022 21:10:37 -0500
  4. Subject: [PATCH 1/2] spidev: Add Silicon Labs EM3581 device compatible
  5. Add compatible string for Silicon Labs EM3581 device.
  6. Note: This patch is adapted from a patch submitted to the for-next branch (v6.3).
  7. Signed-off-by: Vincent Tremblay <[email protected]>
  8. ---
  9. drivers/spi/spidev.c | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. --- a/drivers/spi/spidev.c
  12. +++ b/drivers/spi/spidev.c
  13. @@ -700,6 +700,7 @@ static const struct spi_device_id spidev
  14. { .name = "m53cpld" },
  15. { .name = "spi-petra" },
  16. { .name = "spi-authenta" },
  17. + { .name = "em3581" },
  18. {},
  19. };
  20. MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
  21. @@ -726,6 +727,7 @@ static const struct of_device_id spidev_
  22. { .compatible = "menlo,m53cpld", .data = &spidev_of_check },
  23. { .compatible = "cisco,spi-petra", .data = &spidev_of_check },
  24. { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
  25. + { .compatible = "silabs,em3581", .data = &spidev_of_check },
  26. {},
  27. };
  28. MODULE_DEVICE_TABLE(of, spidev_dt_ids);