linux-stable/drivers/platform
Prashant Malani 2c9db24057 platform/chrome: cros_ec_typec: Correct alt mode index
[ Upstream commit 4e477663e3 ]

Alt mode indices used by USB PD (Power Delivery) start with 1, not 0.

Update the alt mdoe registration code to factor this in to the alt mode
descriptor.

Fixes: de0f49487d ("platform/chrome: cros_ec_typec: Register partner altmodes")
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220819190807.1275937-3-pmalani@chromium.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-24 09:57:19 +02:00
..
chrome platform/chrome: cros_ec_typec: Correct alt mode index 2022-10-24 09:57:19 +02:00
goldfish platform: goldfish: pipe: Use platform_get_irq() to get the interrupt 2022-03-18 13:55:21 +01:00
mellanox platform/mellanox: mlxreg-lc: Fix locking issue 2022-09-08 11:24:00 +02:00
mips MIPS: Loongson-3: fix compile mips cpu_hwmon as module build error. 2022-06-09 22:24:19 +02:00
olpc platform/olpc: Fix uninitialized data in debugfs write 2022-08-17 15:15:39 +02:00
surface platform/surface: aggregator_registry: Add support for Surface Laptop Go 2 2022-09-20 12:43:46 +02:00
x86 platform/x86: msi-laptop: Fix resource cleanup 2022-10-24 09:57:19 +02:00
Kconfig platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00
Makefile platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00