Re: [PATCH 04/20] pinctrl/rockchip: switch to use device_get_match_data
From: Linus Walleij
Date: Tue Oct 04 2022 - 03:13:38 EST
On Tue, Sep 20, 2022 at 12:31 PM Jianqun Xu <jay.xu@xxxxxxxxxxxxxx> 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