usb: typec: change altmode SVID to u16 entry
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 4 Dec 2023 02:03:01 +0000 (04:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 12:53:45 +0000 (13:53 +0100)
commit0dbda971860c702c33df173b627f9d74b3152b75
tree4aa08464e5b89494cb81e27ac45ae487ecb2a5ee
parentd1756ac67e7f8d4c15ba4dd0c132e593b0a56de6
usb: typec: change altmode SVID to u16 entry

As stated in the changelog for the commit 7b458a4c5d73 ("usb: typec: Add
typec_port_register_altmodes()"), the code should be adjusted according
to the AltMode bindings. As the SVID is 16 bits wide (according to the
USB PD Spec), use fwnode_property_read_u16() to read it.

Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20231204020303.2287338-3-dmitry.baryshkov@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/intel/chtwc_int33fe.c
drivers/usb/typec/class.c