110-v6.3-0002-spidev-Add-Silicon-Labs-SI3210-device-compatible.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 536581825219e97fa2ae0c4de35605d2f6311416 Mon Sep 17 00:00:00 2001
  2. From: Vincent Tremblay <[email protected]>
  3. Date: Tue, 27 Dec 2022 09:00:58 -0500
  4. Subject: [PATCH 2/2] spidev: Add Silicon Labs SI3210 device compatible
  5. Add compatible string for Silicon Labs SI3210 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. @@ -701,6 +701,7 @@ static const struct spi_device_id spidev
  14. { .name = "spi-petra" },
  15. { .name = "spi-authenta" },
  16. { .name = "em3581" },
  17. + { .name = "si3210" },
  18. {},
  19. };
  20. MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
  21. @@ -728,6 +729,7 @@ static const struct of_device_id spidev_
  22. { .compatible = "cisco,spi-petra", .data = &spidev_of_check },
  23. { .compatible = "micron,spi-authenta", .data = &spidev_of_check },
  24. { .compatible = "silabs,em3581", .data = &spidev_of_check },
  25. + { .compatible = "silabs,si3210", .data = &spidev_of_check },
  26. {},
  27. };
  28. MODULE_DEVICE_TABLE(of, spidev_dt_ids);