]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: tipd: Move switch_power_state to tipd_data
authorSven Peter <sven@kernel.org>
Sun, 14 Sep 2025 12:56:08 +0000 (12:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Sep 2025 14:08:20 +0000 (16:08 +0200)
commitff175d85888e6bb4c41101493b8e74717842fb39
tree473a7b1fbfc9c022215be215652f8193651b7a37
parentb3dddff502c5e049e43e3d0c43586de342b9e1d7
usb: typec: tipd: Move switch_power_state to tipd_data

When support for CD321x was originally added no other hardware variant
was supported and there was no need for struct tipd_data. Now that it
exists move the special case in there so that we can drop the
of_device_is_compatible_check entirely.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Sven Peter <sven@kernel.org>
Link: https://lore.kernel.org/r/20250914-apple-usb3-tipd-v1-3-4e99c8649024@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c