Commit 9af2ca82 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Linus Walleij

pinctrl-sx150x: Fix incorrect constant in sx150x_init_hw

According to the datasheet for SX1504/5/6, RegAdvanced's
"Autoclear NINT" bit that turns the feature when set and disables it
when cleared, so writing 0x04 to the register will have the opposite
from desirable effect.
Tested-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 7d68a79a
...@@ -942,7 +942,7 @@ static int sx150x_init_hw(struct sx150x_pinctrl *pctl) ...@@ -942,7 +942,7 @@ static int sx150x_init_hw(struct sx150x_pinctrl *pctl)
else if (pctl->data->model == SX150X_456) else if (pctl->data->model == SX150X_456)
err = sx150x_i2c_write(pctl->client, err = sx150x_i2c_write(pctl->client,
pctl->data->pri.x456.reg_advance, pctl->data->pri.x456.reg_advance,
0x04); 0x00);
else else
err = sx150x_i2c_write(pctl->client, err = sx150x_i2c_write(pctl->client,
pctl->data->pri.x123.reg_advance, pctl->data->pri.x123.reg_advance,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment