[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z9FohBe0U0c_VVRt@smile.fi.intel.com>
Date: Wed, 12 Mar 2025 12:57:08 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rob Herring (Arm)" <robh@...nel.org>,
Markus Elfring <elfring@...rs.sourceforge.net>,
Jakob Riepler <jakob+lkml@...anoidlabs.org>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-leds@...r.kernel.org, linux-usb@...r.kernel.org,
Daniel Scally <djrscally@...il.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Danilo Krummrich <dakr@...nel.org>, Lee Jones <lee@...nel.org>,
Pavel Machek <pavel@...nel.org>,
Matti Vaittinen <mazziesaccount@...il.com>,
Jonathan Cameron <jic23@...nel.org>
Subject: Re: [PATCH v1 3/4] leds: ncp5623: Use fwnode_get_child_node_count()
On Tue, Mar 11, 2025 at 09:54:02AM +0000, Jonathan Cameron wrote:
> On Mon, 10 Mar 2025 16:54:53 +0200
> Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:
...
> > static int ncp5623_probe(struct i2c_client *client)
> > struct device *dev = &client->dev;
> > struct fwnode_handle *mc_node, *led_node;
> > struct led_init_data init_data = { };
> > - int num_subleds = 0;
> > struct ncp5623 *ncp;
> > struct mc_subled *subled_info;
> > + unsigned int num_subleds;
> I have no idea what the scheme is for ordering here. My gut
> feeling would have been to leave it in original location but it's
> not something I feel strongly about.
I guess I tried to follow multiple approaches here while moving it:
1) it follows "longer line first";
2) it follows "group the variables of the same type".
I also dunno what was behind the original code, but I think my approach has
a benefit as pointed out above.
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
Thank you!
> > u32 color_index;
> > u32 reg;
> > int ret;
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists