]> git.baikalelectronics.ru Git - kernel.git/commit
leds: tca6507: Get rid of duplicate of_node assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 14 Dec 2021 14:27:38 +0000 (16:27 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 12 Jan 2022 18:43:15 +0000 (19:43 +0100)
commit1d1b02ba357b538f1ebd35d7b020b08856013568
treeb0151be662453e602316df3c0d98cfdf24aefd97
parentc5b724a304b0313128cab241eb33891a0e6f06f5
leds: tca6507: 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 assignment here.

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

Call graph:
   --> tca6507_probe_gpios()
     --> gpiochip_add_data()
       --> gpiochip_add_data_with_key()
         --> of_gpio_dev_init()

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-tca6507.c