Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c87362fb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Coresight: add support for device names"

parents d33b91af 8fe809a7
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -130,9 +130,11 @@ of_get_coresight_platform_data(struct device *dev,
	if (!pdata)
		return ERR_PTR(-ENOMEM);

	ret = of_property_read_string(node, "coresight-name", &pdata->name);
	if (ret) {
		/* Use device name as sysfs handle */
		pdata->name = dev_name(dev);

	}
	/* Get the number of input and output port for this component */
	of_coresight_get_ports(node, &pdata->nr_inport, &pdata->nr_outport);

@@ -181,6 +183,9 @@ of_get_coresight_platform_data(struct device *dev,
			if (!rdev)
				return ERR_PTR(-EPROBE_DEFER);

			ret = of_property_read_string(rparent, "coresight-name",
						&pdata->child_names[i]);
			if (ret)
				pdata->child_names[i] = dev_name(rdev);
			pdata->child_ports[i] = rendpoint.id;