t_pinctrl_and_offset() using
offset 10 incorrectly return pin controller "foo" instead of "bar".
Fix this by using an exclusive range check.
Fixes: d0bb00adccb8 ("pinctrl: fix pinctrl_gpio_get_pinctrl_and_offset for
gpio-ranges array")
Signed-off-by: Jonas Karlman
Thanks
From: Quanyang Wang
Sometimes a multi-element array is used for "gpio-ranges" property in
dts file:
qe_pio_e: gpio-controller@1460 {
..
gpio-ranges = < 0 20 10>, < 10 50 20>;
..
};
But the function pinctrl_gpio_get_pinctrl_a
2 matches
Mail list logo