[PATCH 04/20] pinctrl/rockchip: switch to use device_get_match_data
Linus Walleij
linus.walleij at linaro.org
Tue Oct 4 00:13:19 PDT 2022
On Tue, Sep 20, 2022 at 12:31 PM Jianqun Xu <jay.xu at rock-chips.com> wrote:
> - match = of_match_node(rockchip_pinctrl_dt_match, node);
> - ctrl = (struct rockchip_pin_ctrl *)match->data;
> -
> + ctrl = (struct rockchip_pin_ctrl *)device_get_match_data(dev);
Drop the cast: these pointers are void * and can be assigned to anything.
Yours,
Linus Walleij
More information about the Linux-rockchip
mailing list