Re: [PATCH RESEND 05/14] gpio: ts4800: use generic device properties

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




On Mon, Aug 25, 2025 at 11:48:46AM +0200, Bartosz Golaszewski wrote:
>
> Avoid pulling in linux/of.h by using the generic device properties.
...
> -	retval = of_property_read_u32(node, "ngpios", &ngpios);
> +	retval = device_property_read_u32(dev, "ngpios", &ngpios);
> 	if (retval == -EINVAL)
> 		ngpios = DEFAULT_PIN_NUMBER;
> 	else if (retval)
Don't we have a method in GPIOLIB that does this (can be called explicitly by the drivers)?
-- 
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

AltStyle によって変換されたページ (->オリジナル) /