mirror of https://gitee.com/openkylin/linux.git
gpio: stmpe: || vs && typo
&& was obviously intended here.
Fixes: 6936e1f88d
('gpio: stmpe: Write int status register only when needed')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
44df08198b
commit
d1ca19cb3b
|
@ -409,7 +409,7 @@ static irqreturn_t stmpe_gpio_irq(int irq, void *dev)
|
|||
* 801/1801/1600, bits are cleared when read.
|
||||
* Edge detect register is not present on 801/1600/1801
|
||||
*/
|
||||
if (stmpe->partnum != STMPE801 || stmpe->partnum != STMPE1600 ||
|
||||
if (stmpe->partnum != STMPE801 && stmpe->partnum != STMPE1600 &&
|
||||
stmpe->partnum != STMPE1801) {
|
||||
stmpe_reg_write(stmpe, statmsbreg + i, status[i]);
|
||||
stmpe_reg_write(stmpe,
|
||||
|
|
Loading…
Reference in New Issue