gpio: pca953x: Swap if statements to save later complexity