Re: [PATCH 4/5] gpio: pca953x: Swap if statements to save later complexity

From: Linus Walleij
Date: Wed Aug 31 2022 - 08:37:17 EST


On Mon, Aug 29, 2022 at 3:39 PM Martyn Welch <martyn.welch@xxxxxxxxxxxxx> wrote:

> A later patch in the series adds support for a further chip type that
> shares some similarity with the PCA953X_TYPE. In order to keep the logic
> simple, swap over the if and else portions where checks are made against
> PCA953X_TYPE and instead check for PCA957X_TYPE.
>
> Signed-off-by: Martyn Welch <martyn.welch@xxxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij