Thread (13 messages) 13 messages, 2 authors, 2023-03-21

Re: [PATCH v2 1/4] pinctrl: s32: use of_device_get_match_data() to get device data

From: Andy Shevchenko <hidden>
Date: 2023-03-20 17:07:09
Also in: linux-gpio, lkml

On Mon, Mar 20, 2023 at 6:39 PM Chester Lin [off-list ref] wrote:
Instead of relying on of_match_device(), using of_device_get_match_data()
can simplify implementation and avoid code duplication.
Suggested-by?
Signed-off-by: Chester Lin <redacted>
...
+       soc_info = (struct s32_pinctrl_soc_info *)
+                       of_device_get_match_data(&pdev->dev);
Drop the ugly casting, it's not needed.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help