]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: typec: tcpci: add generic tcpci fallback compatible
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 22 Feb 2024 21:09:01 +0000 (22:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:38 +0000 (13:07 +0200)
[ Upstream commit 8774ea7a553e2aec323170d49365b59af0a2b7e0 ]

The driver already support the tcpci binding for the i2c_device_id so
add the support for the of_device_id too.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240222210903.208901-3-m.felsch@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/tcpm/tcpci.c

index 0ee3e6e29bb178418dbcfb60c3d5eaeb542245da..7118551827f6a2a50ac16be6b0c72d206a867f53 100644 (file)
@@ -889,6 +889,7 @@ MODULE_DEVICE_TABLE(i2c, tcpci_id);
 #ifdef CONFIG_OF
 static const struct of_device_id tcpci_of_match[] = {
        { .compatible = "nxp,ptn5110", },
+       { .compatible = "tcpci", },
        {},
 };
 MODULE_DEVICE_TABLE(of, tcpci_of_match);