lkml.org 
[lkml]   [2023]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 1/4] pinctrl: s32: use of_device_get_match_data() to get device data
On Mon, Mar 20, 2023 at 6:39 PM Chester Lin <clin@suse.com> 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 <clin@suse.com>

...

> + 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

\
 
 \ /
  Last update: 2023-03-27 01:09    [W:0.124 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site