Re: [PATCH v1 1/1] media: i2c: ds90ub9x3: Remove unneeded of_gpio_n_cells assignment

From: Andy Shevchenko
Date: Thu Apr 03 2025 - 07:00:11 EST


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!

--
With Best Regards,
Andy Shevchenko