Re: [PATCH v2 2/2] usb: typec: tcpci: support setting orientation via GPIO

From: Xu Yang

Date: Thu Mar 12 2026 - 22:15:45 EST


On Thu, Mar 12, 2026 at 03:12:41PM -0400, Frank Li wrote:
> From: Frank Li (AI-BOT) <frank.li@xxxxxxx>
>
>
> > + err = orient_gpio ? 1 : 0;
>
> AI: Redundant ternary. Use `err = !!orient_gpio;` or `err = orient_gpio != NULL;`
> for clarity.

It was "err = !!orient_gpio;" in V1. But the AI-BOT complained about it.
I will return it back in V3.

Thanks,
Xu Yang