Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: rpi-panel-attiny: Get rid of duplicate of_node assignment

GPIO library does copy the of_node from the parent device of
the GPIO chip, there is no need to repeat this in the individual
drivers. Remove these assignment all at once.

For the details one may look into the of_gpio_dev_init() implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220325184508.45670-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
4917e549 31058401

-1
-1
drivers/regulator/rpi-panel-attiny-regulator.c
··· 364 364 state->gc.parent = &i2c->dev; 365 365 state->gc.label = i2c->name; 366 366 state->gc.owner = THIS_MODULE; 367 - state->gc.of_node = i2c->dev.of_node; 368 367 state->gc.base = -1; 369 368 state->gc.ngpio = NUM_GPIO; 370 369