The pca953x_gpio driver uses default value of polarity inversion register.
For some devices like PCA9557 and MAX7310, their polarity inversion register
default value is 0xf0. So for high 4 ports, when reading their values,
the values are inverted as the actual level.
This patch clears the polarity inversion register to 0 at init. So that the port read
and write values are aligned.
Signed-off-by: Ye Li <firstname.lastname@example.org>
Acked-by: Fugang Duan <email@example.com>
Acked-by: Peng Fan <firstname.lastname@example.org>
(cherry picked from commit