mirror of https://gitee.com/openkylin/linux.git
Input: bu21013_ts - fix misuse of logical operation in place of bitop
Signed-off-by: David Sterba <dsterba@suse.cz> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
a06a09c802
commit
ef11e701f3
|
@ -365,7 +365,7 @@ static int bu21013_init_chip(struct bu21013_ts_data *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
retval = i2c_smbus_write_byte_data(i2c, BU21013_TH_OFF_REG,
|
retval = i2c_smbus_write_byte_data(i2c, BU21013_TH_OFF_REG,
|
||||||
BU21013_TH_OFF_4 || BU21013_TH_OFF_3);
|
BU21013_TH_OFF_4 | BU21013_TH_OFF_3);
|
||||||
if (retval < 0) {
|
if (retval < 0) {
|
||||||
dev_err(&i2c->dev, "BU21013_TH_OFF reg write failed\n");
|
dev_err(&i2c->dev, "BU21013_TH_OFF reg write failed\n");
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in New Issue