Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpio: pca953x: Clear the polarity invert register at init
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 <[email protected]> Acked-by: Fugang Duan <[email protected]> Acked-by: Peng Fan <[email protected]> Signed-off-by: Anatolij Gustschin <[email protected]>
- Loading branch information