diff options
author | Quanyang Wang <quanyang.wang@windriver.com> | 2023-03-16 14:11:46 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-04-03 06:53:53 +1200 |
commit | d0bb00adccb8fb5187b49193127729d591ebd206 (patch) | |
tree | 0736c4d7b69ded1909b653c78cd7e7b22fec1703 /drivers/i2c/i2c-cdns.c | |
parent | 2fb74a1d134bf675869e548c8f3f8c014b7ee473 (diff) |
pinctrl: fix pinctrl_gpio_get_pinctrl_and_offset for gpio-ranges array
Sometimes a multi-element array is used for "gpio-ranges" property in
dts file:
qe_pio_e: gpio-controller@1460 {
......
gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 20>;
......
};
But the function pinctrl_gpio_get_pinctrl_and_offset can't handle this
case because the "index" argument passed to dev_read_phandle_with_args
is fixed to be "0". Use a loop to traverse the array to fix it.
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Diffstat (limited to 'drivers/i2c/i2c-cdns.c')
0 files changed, 0 insertions, 0 deletions