]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: typec: tipd: Fix typo in cd321x_switch_power_state
authorHector Martin <marcan@marcan.st>
Sat, 20 Nov 2021 03:07:16 +0000 (12:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Nov 2021 13:08:08 +0000 (14:08 +0100)
SPSS should've been SSPS.

Fixes: 864afd2bfe97 ("usb: typec: tipd: Switch CD321X power state to S0")
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
Link: https://lore.kernel.org/r/20211120030717.84287-2-marcan@marcan.st
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c

index fb8ef12bbe9c85de3e0ea4bd69cbe02b39f3c68d..4da5a0b2aed27101ad32ce08874d286b57e74490 100644 (file)
@@ -653,7 +653,7 @@ static int cd321x_switch_power_state(struct tps6598x *tps, u8 target_state)
        if (state == target_state)
                return 0;
 
-       ret = tps6598x_exec_cmd(tps, "SPSS", sizeof(u8), &target_state, 0, NULL);
+       ret = tps6598x_exec_cmd(tps, "SSPS", sizeof(u8), &target_state, 0, NULL);
        if (ret)
                return ret;