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

Configure Feed

Select the types of activity you want to include in your feed.

of: unittest: Switch to use fwnode instead of of_node

The OF node in the GPIO library is deprecated and soon will be removed.
GPIO library now accepts fwnode as a firmware node, so switch the module
to use it instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220708214539.7254-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Rob Herring
652081b3 912cbf13

+2 -2
+2 -2
drivers/of/unittest.c
··· 1602 1602 1603 1603 platform_set_drvdata(pdev, devptr); 1604 1604 1605 - devptr->chip.of_node = pdev->dev.of_node; 1605 + devptr->chip.fwnode = dev_fwnode(&pdev->dev); 1606 1606 devptr->chip.label = "of-unittest-gpio"; 1607 1607 devptr->chip.base = -1; /* dynamic allocation */ 1608 1608 devptr->chip.ngpio = 5; ··· 1611 1611 ret = gpiochip_add_data(&devptr->chip, NULL); 1612 1612 1613 1613 unittest(!ret, 1614 - "gpiochip_add_data() for node @%pOF failed, ret = %d\n", devptr->chip.of_node, ret); 1614 + "gpiochip_add_data() for node @%pfw failed, ret = %d\n", devptr->chip.fwnode, ret); 1615 1615 1616 1616 if (!ret) 1617 1617 unittest_gpio_probe_pass_count++;