platform/chrome: cros_ec_typec: Parameterize cros_typec_cmds_supported()
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Thu, 10 Dec 2020 06:09:02 +0000 (22:09 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 5 Jan 2021 20:57:15 +0000 (12:57 -0800)
commitba8ce515454e1fc5e73ff8989c18c596a3449fef
tree7c86d33dfd9c65391ca3a9238d90dc8ba463e239
parent1563090965421f7e96cc006c150180f1526a24f7
platform/chrome: cros_ec_typec: Parameterize cros_typec_cmds_supported()

cros_typec_cmds_supported() is currently being used to check only one
feature flag.
Add a new feature parameter to it so that it can be used to check
multiple feature flags supported in cros_ec.
Rename cros_typec_cmds_supported() to cros_typec_feature_supported().

Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20201210060903.2205-2-utkarsh.h.patel@intel.com
drivers/platform/chrome/cros_ec_typec.c