[PATCH v2 06/15] usb: typec: qcom-pmic-typec: fix arguments of qcom_pmic_typec_pdphy_set_roles
Bryan O'Donoghue
bryan.odonoghue at linaro.org
Sun Jan 14 08:13:49 PST 2024
On 13/01/2024 20:55, Dmitry Baryshkov wrote:
> + (data_role == TYPEC_HOST ? MSG_CONFIG_PORT_DATA_ROLE : 0) |
> + (power_role == TYPEC_SOURCE ? MSG_CONFIG_PORT_POWER_ROLE : 0));
Not a big fan of this syntax but... its fine too
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
Acked-by: Bryan O'Donoghue <bryan.odonoghue at linaro.org>
More information about the linux-phy
mailing list