usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode
authorHans de Goede <hdegoede@redhat.com>
Fri, 22 Feb 2019 19:22:39 +0000 (20:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 14:00:34 +0000 (15:00 +0100)
commitbfb2ab8e7138fc484952a948275eb443e8b9a360
tree53696053fae7158b8dac4405e11e4225d4e261e3
parent09fed4d64d3f1c3f9296d3f67eb19c8bf4b1c0c1
usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode

Keep the orientation value when setting the mux to safe mode, this
fixes the orientation getting reset when switching alt-modes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/pi3usb30532.c