lkml.org 
[lkml]   [2023]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V3 3/6] pinctrl: sprd: Move common and misc offset parameters to private data
On Fri, Oct 27, 2023 at 03:14:23PM +0800, Linhua Xu wrote:
> From: Linhua Xu <Linhua.Xu@unisoc.com>
>
> For UNISOC pin controller, the offset values of the common
> register and misc register will be different. So add SoC
> structure in sprd_pinctrl_of_match() and parse it in sprd-pinctrl_core.

...

> + priv_data = of_device_get_match_data(&pdev->dev);
> + if (!priv_data)
> + return -EINVAL;

I believe there is the idea to make that API local to the device property core,
so use device_get_match_data() instead.

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2023-10-27 13:25    [W:0.062 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site