usb: typec: tcpci_rt1711h: Drop CONFIG_OF ifdeffery
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 6 Sep 2023 08:06:19 +0000 (09:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 11:56:08 +0000 (13:56 +0200)
commitf782152b2560e6a772a5c2f4022c70bb100cdcc3
tree168a99806db6f775fca6f5e3aba8a946b84c176e
parent15ebb02abde80c2e1567b605251dd2052d2b792c
usb: typec: tcpci_rt1711h: Drop CONFIG_OF ifdeffery

Drop of_match_ptr() from rt1711h_of_match and get rid of ugly CONFIG_OF
ifdeffery. This slightly increases the size of rt1711h_of_match on non-OF
system and shouldn't be an issue.

It also allows, in case if needed, to enumerate this device via ACPI with
PRP0001 magic.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230906080619.36930-6-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci_rt1711h.c