]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: fotg210: List different variants
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2023 07:09:16 +0000 (08:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:50:39 +0000 (13:50 +0100)
[ Upstream commit 170da81aab077c9e85fc2b786413ca07942774a0 ]

There are at least two variants of the FOTG: FOTG200 and
FOTG210. Handle them in this driver and let's add
more quirks as we go along.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-2-100388af9810@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/fotg210/fotg210-core.c

index ee740a6da463fb9be5f544483f0ddacd6de9ec8f..da9ea5957ccff25a702ba99c82810b72fd79061c 100644 (file)
@@ -127,7 +127,9 @@ static int fotg210_remove(struct platform_device *pdev)
 
 #ifdef CONFIG_OF
 static const struct of_device_id fotg210_of_match[] = {
+       { .compatible = "faraday,fotg200" },
        { .compatible = "faraday,fotg210" },
+       /* TODO: can we also handle FUSB220? */
        {},
 };
 MODULE_DEVICE_TABLE(of, fotg210_of_match);