0016-usb-fotg210-List-different-variants.patch 960 B

12345678910111213141516171819202122232425
  1. From 407577548b2fcd41cc72ee05df1f05a430ed30a0 Mon Sep 17 00:00:00 2001
  2. From: Linus Walleij <[email protected]>
  3. Date: Wed, 18 Jan 2023 08:09:16 +0100
  4. Subject: [PATCH 16/29] usb: fotg210: List different variants
  5. There are at least two variants of the FOTG: FOTG200 and
  6. FOTG210. Handle them in this driver and let's add
  7. more quirks as we go along.
  8. Signed-off-by: Linus Walleij <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  11. ---
  12. --- a/drivers/usb/fotg210/fotg210-core.c
  13. +++ b/drivers/usb/fotg210/fotg210-core.c
  14. @@ -127,7 +127,9 @@ static int fotg210_remove(struct platfor
  15. #ifdef CONFIG_OF
  16. static const struct of_device_id fotg210_of_match[] = {
  17. + { .compatible = "faraday,fotg200" },
  18. { .compatible = "faraday,fotg210" },
  19. + /* TODO: can we also handle FUSB220? */
  20. {},
  21. };
  22. MODULE_DEVICE_TABLE(of, fotg210_of_match);