diff options
| author | Ye Li <[email protected]> | 2018-10-18 16:16:46 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-11-16 13:34:36 -0500 |
| commit | 3764b2bdce9f0d84fc0e1b8740fa9e751b8394b3 (patch) | |
| tree | db9f8fc53904cb483ac38e91ba06856107baf58f /scripts/basic/Makefile | |
| parent | e5e06b65ad6563701a069f342ce35a5576f12fd5 (diff) | |
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]>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions
