aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/chtwc_int33fe.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2023-12-04 02:03:01 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-15 12:53:45 +0000
commit0dbda971860c702c33df173b627f9d74b3152b75 (patch)
tree4aa08464e5b89494cb81e27ac45ae487ecb2a5ee /drivers/platform/x86/intel/chtwc_int33fe.c
parentdt-bindings: connector: usb: add altmodes description (diff)
downloadkernel-0dbda971860c702c33df173b627f9d74b3152b75.tar.gz
kernel-0dbda971860c702c33df173b627f9d74b3152b75.zip
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 <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/chtwc_int33fe.c')
-rw-r--r--drivers/platform/x86/intel/chtwc_int33fe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/chtwc_int33fe.c b/drivers/platform/x86/intel/chtwc_int33fe.c
index 848baecc1bb0..93f75ba1dafd 100644
--- a/drivers/platform/x86/intel/chtwc_int33fe.c
+++ b/drivers/platform/x86/intel/chtwc_int33fe.c
@@ -136,7 +136,7 @@ static const struct software_node altmodes_node = {
};
static const struct property_entry dp_altmode_properties[] = {
- PROPERTY_ENTRY_U32("svid", 0xff01),
+ PROPERTY_ENTRY_U16("svid", 0xff01),
PROPERTY_ENTRY_U32("vdo", 0x0c0086),
{ }
};