Re: [PATCH V3 3/6] pinctrl: sprd: Move common and misc offset parameters to private data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 27, 2023 at 03:14:23PM +0800, Linhua Xu wrote:
> From: Linhua Xu <Linhua.Xu@xxxxxxxxxx>
> 
> 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





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux