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.

software node: read the reference args via the fwnode API

Once we allow software nodes to reference all kinds of firmware nodes,
the refnode here will no longer necessarily be a software node so read
its proprties going through its fwnode implementation.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Bartosz Golaszewski and committed by
Philipp Zabel
f11a8e99 e9a6fb0b

+1 -3
+1 -3
drivers/base/swnode.c
··· 540 540 return -ENOENT; 541 541 542 542 if (nargs_prop) { 543 - error = property_entry_read_int_array(ref->node->properties, 544 - nargs_prop, sizeof(u32), 545 - &nargs_prop_val, 1); 543 + error = fwnode_property_read_u32(refnode, nargs_prop, &nargs_prop_val); 546 544 if (error) 547 545 return error; 548 546