usb: pd: Add helper macro to get Type C cable speed
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Wed, 20 Sep 2023 02:32:41 +0000 (19:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 11:58:59 +0000 (13:58 +0200)
commitf9ee6043283a78c84adf6ef3cef7a085eee4130f
tree33c3e20c8a881994630154737048d93166c068c7
parentc365b1e1f40499472433cc8fca3d0ea280ead52a
usb: pd: Add helper macro to get Type C cable speed

Added a helper macro to get the Type C cable speed when provided the
cable VDO.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Link: https://lore.kernel.org/r/20230920023243.2494410-4-utkarsh.h.patel@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/pd_vdo.h