Re: [PATCH v1] usb: typec: altmodes/displayport: verify compatible source/sink role combination

From: RD Babiera
Date: Wed Oct 18 2023 - 16:07:20 EST


On Tue, Oct 17, 2023 at 2:33 PM Prashant Malani <pmalani@xxxxxxxxxxxx> wrote:
> OTOH, perhaps you should just introduce a macro that performs this
> bitwise operation for even better
> readability. Something like
>
> #define DP_CAP_IS_DFP_D(_cap_) (!!(DP_CAP_CAPABILITY(_cap_) &
> DP_CAP_DFP_D))

I'll take this approach, thanks for the feedback Prashant!

---

Best,
RD