mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
pinctrl-sx150x: Improve sx150x_init_misc for SX1504/5/6
For Sx1504/5/6 only SX1506 has RegAdvanced, so put some code in place to account for that. Tested-by: Neil Armstrong <narmstrong@baylibre.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
310cdfa009
commit
b30d31e40e
@ -936,6 +936,13 @@ static int sx150x_init_misc(struct sx150x_pinctrl *pctl)
|
||||
case SX150X_456:
|
||||
reg = pctl->data->pri.x456.reg_advance;
|
||||
value = 0x00;
|
||||
|
||||
/*
|
||||
* Only SX1506 has RegAdvanced, SX1504/5 are expected
|
||||
* to initialize this offset to zero
|
||||
*/
|
||||
if (!reg)
|
||||
return 0;
|
||||
break;
|
||||
case SX150X_123:
|
||||
reg = pctl->data->pri.x123.reg_advance;
|
||||
|
Loading…
Reference in New Issue
Block a user