]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: typec: ucsi: Clean up UCSI_CABLE_PROP macros
authorJameson Thies <jthies@google.com>
Tue, 5 Mar 2024 02:58:01 +0000 (02:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:25 +0000 (15:28 +0200)
commit4a1f0678d15e7921f184fe053d733600a45de299
treef8a3458b1fe8d83cfb769b368243942b0302a5e7
parent8b86779ade3a599f53e767a04e442eb2e774c123
usb: typec: ucsi: Clean up UCSI_CABLE_PROP macros

[ Upstream commit 4d0a5a9915793377c0fe1a8d78de6bcd92cea963 ]

Clean up UCSI_CABLE_PROP macros by fixing a bitmask shifting error for
plug type and updating the modal support macro for consistent naming.

Fixes: 3cf657f07918 ("usb: typec: ucsi: Remove all bit-fields")
Cc: stable@vger.kernel.org
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jameson Thies <jthies@google.com>
Link: https://lore.kernel.org/r/20240305025804.1290919-2-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/ucsi/ucsi.h