Re: [PATCH v2 3/5] sh: mach-rsk: rsk7203: use static device properties for LEDs and GPIO buttons

Andy Shevchenko <[email protected]>
Newsgroups gmane.linux.ports.sh.devel,gmane.linux.kernel,gmane.linux.kernel.renesas-soc,gmane.linux.kernel.gpio
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Wed, May 20, 2026 at 10:13:19PM -0700, Dmitry Torokhov wrote:
> Convert the board to use static device properties instead of platform
> data to describe LEDs and GPIO-connected buttons on the board, so
> that support for platform data can be removed from gpio-keys and other
> drivers, unifying their behavior.

...

> +	for (i = 0; i < ARRAY_SIZE(rsk7203_devices); i++) {

	for (unsigned int i = 0; i < ARRAY_SIZE(rsk7203_devices); i++) {

...and drop the above definition of i.

> +		pd = platform_device_register_full(&rsk7203_devices[i]);
> +		error = PTR_ERR_OR_ZERO(pd);
> +		if (error) {
> +			pr_err("failed to create platform device %s: %d\n",
> +			       rsk7203_devices[i].name, error);
> +			return error;
> +		}
> +	}

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.