Re: [PATCH v1 1/1] media: i2c: ds90ub9x3: Remove unneeded of_gpio_n_cells assignment
From: Sakari Ailus
Date: Mon May 05 2025 - 04:18:03 EST
Hi Andy, Tomi,
On Thu, Apr 03, 2025 at 01:58:10PM +0300, Andy Shevchenko wrote:
> On Thu, Apr 03, 2025 at 11:07:40AM +0300, Tomi Valkeinen wrote:
> > On 31/03/2025 10:02, Andy Shevchenko wrote:
> > > The default for of_gpio_n_cells is 2, no need to assign the same
> > > in the user.
> >
> > Where is this documented? I'm also having trouble finding the
> > implementation.
>
> The idea was introduced back in 391c970c0dd1 ("of/gpio: add default of_xlate
> function if device has a node pointer"). But now I realised that it was never
> assumed that default is 2 for the cases when the ->of_xlate() explicitly
> provided. So, this is wrong patch, thanks for the review!
Does the same conclusion apply to the similar max96717 patch as well?
--
Sakari Ailus