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@xxxxxxxxxx> Acked-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>